net.minecraft.src
Class ItemArmor

java.lang.Object
  extended by net.minecraft.src.Item
      extended by net.minecraft.src.ItemArmor

public class ItemArmor
extends Item


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.
 
Fields inherited from class net.minecraft.src.Item
appleGold, appleRed, arrow, axeDiamond, axeGold, axeSteel, axeStone, axeWood, bed, beefCooked, beefRaw, blazePowder, blazeRod, boat, bone, book, bootsChain, bootsDiamond, bootsGold, bootsLeather, bootsSteel, bow, bowlEmpty, bowlSoup, bread, brewingStand, brick, bucketEmpty, bucketLava, bucketMilk, bucketWater, cake, cauldron, chickenCooked, chickenRaw, clay, coal, compass, cookie, diamond, doorSteel, doorWood, dyePowder, egg, emerald, enderPearl, expBottle, eyeOfEnder, feather, fermentedSpiderEye, fireballCharge, fishCooked, fishingRod, fishRaw, flint, flintAndSteel, ghastTear, glassBottle, goldNugget, gunpowder, helmetChain, helmetDiamond, helmetGold, helmetLeather, helmetSteel, hoeDiamond, hoeGold, hoeSteel, hoeStone, hoeWood, ingotGold, ingotIron, isDefaultTexture, itemsList, leather, legsChain, legsDiamond, legsGold, legsLeather, legsSteel, lightStoneDust, magmaCream, map, melon, melonSeeds, minecartCrate, minecartEmpty, minecartPowered, monsterPlacer, netherStalkSeeds, painting, paper, pickaxeDiamond, pickaxeGold, pickaxeSteel, pickaxeStone, pickaxeWood, plateChain, plateDiamond, plateGold, plateLeather, plateSteel, pocketSundial, porkCooked, porkRaw, potion, pumpkinSeeds, record11, record13, recordBlocks, recordCat, recordChirp, recordFar, recordMall, recordMellohi, recordStal, recordStrad, recordWard, redstone, redstoneRepeater, reed, rottenFlesh, saddle, seeds, shears, shiftedIndex, shovelDiamond, shovelGold, shovelSteel, shovelStone, shovelWood, sign, silk, slimeBall, snowball, speckledMelon, spiderEye, stick, sugar, swordDiamond, swordGold, swordSteel, swordStone, swordWood, wheat, writableBook, writtenBook
 
Constructor Summary
ItemArmor(int par1, EnumArmorMaterial par2EnumArmorMaterial, int par3, int par4)
           
 
Method Summary
 int getItemEnchantability()
          Return the enchantability factor of the item, most of the time is based on material.
 
Methods inherited from class net.minecraft.src.Item
addInformation, canHarvestBlock, doesContainerItemLeaveCraftingGrid, func_77653_i, func_77660_a, getColorFromDamage, getContainerItem, getContainerItemStack, getCreativeTab, getDamageVsEntity, getHasSubtypes, getIconFromDamage, getIconFromDamageForRenderPass, getIconIndex, getIconIndex, getItemDisplayName, getItemName, getItemNameIS, getItemStackLimit, getItemUseAction, getLocalItemName, getMaxDamage, getMaxItemUseDuration, getMetadata, getPotionEffect, getRarity, getRenderPasses, getShareTag, getStatName, getStrVsBlock, getStrVsBlock, getSubItems, getTextureFile, hasContainerItem, hasEffect, hitEntity, isDamageable, isFull3D, isItemTool, isMap, isPotionIngredient, isRepairable, itemInteractionForEntity, onBlockStartBreak, onCreated, onDroppedByPlayer, onFoodEaten, onItemRightClick, onItemUseFirst, onItemUseFirst, onLeftClickEntity, onPlayerStoppedUsing, onUpdate, onUsingItemTick, requiresMultipleRenderPasses, setContainerItem, setFull3D, setIconCoord, setIconIndex, setItemName, setMaxDamage, setMaxStackSize, setNoRepair, setTabToDisplayOn, setTextureFile, shouldRotateAroundWhenRendering, tryPlaceIntoWorld
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

armorType

public final int armorType
Stores the armor type: 0 is helmet, 1 is plate, 2 is legs and 3 is boots


damageReduceAmount

public final int damageReduceAmount
Holds the amount of damage that the armor reduces at full durability.


renderIndex

public final 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 Detail

ItemArmor

public ItemArmor(int par1,
                 EnumArmorMaterial par2EnumArmorMaterial,
                 int par3,
                 int par4)
Method Detail

getItemEnchantability

public int getItemEnchantability()
Return the enchantability factor of the item, most of the time is based on material.

Overrides:
getItemEnchantability in class Item