YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraft.item.EnumArmorMaterial Enum Reference

Public Member Functions

int getDurability (int par1)
 
int getDamageReductionAmount (int par1)
 
int getEnchantability ()
 
int getArmorCraftingMaterial ()
 

Public Attributes

 CLOTH =(5, new int[]{1, 3, 2, 1}, 15)
 
 CHAIN =(15, new int[]{2, 5, 4, 1}, 12)
 
 IRON =(15, new int[]{2, 6, 5, 2}, 9)
 
 GOLD =(7, new int[]{2, 5, 3, 1}, 25)
 
 DIAMOND =(33, new int[]{3, 8, 6, 3}, 10)
 
Item customCraftingMaterial = null
 

Member Function Documentation

int net.minecraft.item.EnumArmorMaterial.getArmorCraftingMaterial ( )

Return the crafting material for this armor material, used to determine the item that can be used to repair an armor piece with an anvil

int net.minecraft.item.EnumArmorMaterial.getDamageReductionAmount ( int  par1)

Return the damage reduction (each 1 point is a half a shield on gui) of the piece index passed (0 = helmet, 1 = plate, 2 = legs and 3 = boots)

int net.minecraft.item.EnumArmorMaterial.getDurability ( int  par1)

Returns the durability for a armor slot of for this type.

int net.minecraft.item.EnumArmorMaterial.getEnchantability ( )

Return the enchantability factor of the material.

Member Data Documentation

net.minecraft.item.EnumArmorMaterial.CHAIN =(15, new int[]{2, 5, 4, 1}, 12)
net.minecraft.item.EnumArmorMaterial.CLOTH =(5, new int[]{1, 3, 2, 1}, 15)
Item net.minecraft.item.EnumArmorMaterial.customCraftingMaterial = null
net.minecraft.item.EnumArmorMaterial.DIAMOND =(33, new int[]{3, 8, 6, 3}, 10)
net.minecraft.item.EnumArmorMaterial.GOLD =(7, new int[]{2, 5, 3, 1}, 25)
net.minecraft.item.EnumArmorMaterial.IRON =(15, new int[]{2, 6, 5, 2}, 9)

The documentation for this enum was generated from the following file: