package me.deftware.client.framework.item.types;

import me.deftware.client.framework.item.Item;
import net.minecraft.item.ArmorItem;

/**
 * @author Deftware
 */
public class ArmourItem extends Item {

	public ArmourItem(net.minecraft.item.Item item) {
		super(item);
	}

	@Override
	public ArmorItem getMinecraftItem() {
		return (ArmorItem) item;
	}

	public int getDamageReduceAmount() {
		return getMinecraftItem().getProtection();
	}

	public int getTypeOrdinal() {
		return getMinecraftItem().getSlotType().ordinal();
	}

}

@@ -115,22 +115,191 @@
 aft.
-item.ArmorItem
+enchantment.EnchantmentHelper;%0Aimport net.minecraft.entity.damage.DamageSource;%0Aimport net.minecraft.item.ArmorItem;%0Aimport net.minecraft.item.ItemStack;%0A%0Aimport java.util.Collections
 ;%0A%0A/
@@ -365,16 +365,59 @@
 Item %7B%0A%0A
+%09private final Iterable%3CItemStack%3E stack;%0A%0A
 %09public 
@@ -474,16 +474,93 @@
 (item);%0A
+%09%09this.stack = Collections.singletonList(new ItemStack(getMinecraftItem()));%0A
 %09%7D%0A%0A%09@Ov
@@ -632,24 +632,24 @@
 ) item;%0A%09%7D%0A%0A
-
 %09public int 
@@ -670,24 +670,302 @@
 eAmount() %7B%0A
+%09%09int enchantedAmount = EnchantmentHelper.getProtectionAmount(stack, DamageSource.GENERIC);%0A%09%09if (enchantedAmount == 0) %7B // Returns 0 if the item has no enchantments%0A%09%09%09return getItemProtectionAmount();%0A%09%09%7D%0A%09%09return enchantedAmount;%0A%09%7D%0A%0A%09public int getItemProtectionAmount() %7B%0A
 %09%09return get

Update ArmourItem