public class ItemArmor extends Item
Modifier and Type | Class and Description |
---|---|
static class |
ItemArmor.ArmorMaterial |
Item.ToolMaterial
Modifier and Type | Field and Description |
---|---|
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.
|
static java.lang.String[] |
EMPTY_SLOT_NAMES |
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.
|
bFull3D, canRepair, field_111210_e, hasSubtypes, iconString, itemIcon, itemRand, itemRegistry, maxStackSize
Constructor and Description |
---|
ItemArmor(ItemArmor.ArmorMaterial p_i45325_1_,
int p_i45325_2_,
int p_i45325_3_) |
Modifier and Type | Method and Description |
---|---|
void |
func_82813_b(ItemStack par1ItemStack,
int par2) |
static IIcon |
func_94602_b(int par0) |
ItemArmor.ArmorMaterial |
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) |
IIcon |
getIconFromDamageForRenderPass(int par1,
int par2)
Gets an icon index based on an item's damage value and the given render pass
|
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.
|
ItemStack |
onItemRightClick(ItemStack par1ItemStack,
World par2World,
EntityPlayer par3EntityPlayer)
Called whenever this item is equipped and the right mouse button is pressed.
|
void |
registerIcons(IIconRegister par1IconRegister) |
void |
removeColor(ItemStack par1ItemStack)
Remove the color from the specified armor ItemStack.
|
boolean |
requiresMultipleRenderPasses() |
addInformation, canHarvestBlock, canItemEditBlocks, createEntity, doesContainerItemLeaveCraftingGrid, doesSneakBypassUse, func_150893_a, func_150897_b, getArmorModel, getArmorTexture, getChestGenBase, getContainerItem, getContainerItem, getCreativeTab, getCreativeTabs, getDamage, getDigSpeed, getDisplayDamage, getEntityLifespan, getFontRenderer, getHarvestLevel, getHasSubtypes, getIcon, getIcon, getIconFromDamage, getIconIndex, getIconString, getIdFromItem, getItemAttributeModifiers, getItemById, getItemFromBlock, getItemStackDisplayName, getItemStackLimit, getItemStackLimit, getItemUseAction, getMaxDamage, getMaxDamage, getMaxItemUseDuration, getMetadata, getMovingObjectPositionFromPlayer, getPotionEffect, getRarity, getRenderPasses, getShareTag, getSmeltingExperience, getSpriteNumber, getSubItems, getToolClasses, getUnlocalizedName, getUnlocalizedName, getUnlocalizedNameInefficiently, hasContainerItem, hasContainerItem, hasCustomEntity, hasEffect, hasEffect, hitEntity, isBookEnchantable, isDamageable, isDamaged, isFull3D, isItemTool, isMap, isPotionIngredient, isRepairable, isValidArmor, itemInteractionForEntity, onArmorTick, onBlockDestroyed, onBlockStartBreak, onCreated, onDroppedByPlayer, onEaten, onEntityItemUpdate, onEntitySwing, onItemUse, onItemUseFirst, onLeftClickEntity, onPlayerStoppedUsing, onUpdate, onUsingTick, registerItems, renderHelmetOverlay, setContainerItem, setCreativeTab, setDamage, setFull3D, setHarvestLevel, setHasSubtypes, setMaxDamage, setMaxStackSize, setNoRepair, setPotionEffect, setTextureName, setUnlocalizedName, shouldRotateAroundWhenRendering
public static final java.lang.String[] EMPTY_SLOT_NAMES
public final int armorType
public final int damageReduceAmount
public final int renderIndex
public ItemArmor(ItemArmor.ArmorMaterial p_i45325_1_, int p_i45325_2_, int p_i45325_3_)
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 ItemArmor.ArmorMaterial getArmorMaterial()
public boolean hasColor(ItemStack par1ItemStack)
public int getColor(ItemStack par1ItemStack)
public IIcon 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
public void registerIcons(IIconRegister par1IconRegister)
registerIcons
in class Item
public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer)
onItemRightClick
in class Item
public static IIcon func_94602_b(int par0)