|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.minecraft.item.Item
net.minecraft.item.ItemArmor
public class ItemArmor
Field Summary | |
---|---|
int |
armorType
Stores the armor type: 0 is helmet, 1 is plate, 2 is legs and 3 is boots |
int |
damageReduceAmount
Holds the amount of damage that the armor reduces at full durability. |
int |
renderIndex
Used on RenderPlayer to select the correspondent armor to be rendered on the player: 0 is cloth, 1 is chain, 2 is iron, 3 is diamond and 4 is gold. |
Constructor Summary | |
---|---|
ItemArmor(int par1,
EnumArmorMaterial par2EnumArmorMaterial,
int par3,
int par4)
|
Method Summary | |
---|---|
void |
func_82813_b(ItemStack par1ItemStack,
int par2)
|
EnumArmorMaterial |
getArmorMaterial()
Return the armor material for this armor item. |
int |
getColor(ItemStack par1ItemStack)
Return the color for the specified armor ItemStack. |
int |
getColorFromItemStack(ItemStack par1ItemStack,
int par2)
|
int |
getIconFromDamageForRenderPass(int par1,
int par2)
|
boolean |
getIsRepairable(ItemStack par1ItemStack,
ItemStack par2ItemStack)
Return whether this item is repairable in an anvil. |
int |
getItemEnchantability()
Return the enchantability factor of the item, most of the time is based on material. |
boolean |
hasColor(ItemStack par1ItemStack)
Return whether the specified armor ItemStack has a color. |
void |
removeColor(ItemStack par1ItemStack)
Remove the color from the specified armor ItemStack. |
boolean |
requiresMultipleRenderPasses()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final int armorType
public final int damageReduceAmount
public final int renderIndex
Constructor Detail |
---|
public ItemArmor(int par1, EnumArmorMaterial par2EnumArmorMaterial, int par3, int par4)
Method Detail |
---|
public int getColorFromItemStack(ItemStack par1ItemStack, int par2)
getColorFromItemStack
in class Item
public boolean requiresMultipleRenderPasses()
requiresMultipleRenderPasses
in class Item
public int getItemEnchantability()
getItemEnchantability
in class Item
public EnumArmorMaterial getArmorMaterial()
public boolean hasColor(ItemStack par1ItemStack)
public int getColor(ItemStack par1ItemStack)
public int getIconFromDamageForRenderPass(int par1, int par2)
getIconFromDamageForRenderPass
in class Item
public void removeColor(ItemStack par1ItemStack)
public void func_82813_b(ItemStack par1ItemStack, int par2)
public boolean getIsRepairable(ItemStack par1ItemStack, ItemStack par2ItemStack)
getIsRepairable
in class Item
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |