Package net.minecraft.src
Class ItemArmor
java.lang.Object
net.minecraft.src.Item
net.minecraft.src.ItemArmor
- Direct Known Subclasses:
ArmorItem
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal intStores the armor type: 0 is helmet, 1 is plate, 2 is legs and 3 is bootsintHolds the amount of damage that the armor reduces at full durability.static final String[]final intUsed 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, axeIron, axeStone, axeWood, bakedPotato, BASE_CHICKEN_ITEM_FOOD_VALUE, BASE_HERBIVORE_ITEM_FOOD_VALUE, BASE_PIG_ITEM_FOOD_VALUE, bed, beefCooked, beefRaw, bFull3D, blazePowder, blazeRod, boat, bone, book, bootsChain, bootsDiamond, bootsGold, bootsIron, bootsLeather, bow, bowlEmpty, bowlSoup, bread, brewingStand, brick, bucketEmpty, bucketLava, bucketMilk, bucketWater, cake, carrot, carrotOnAStick, cauldron, chickenCooked, chickenRaw, clay, coal, comparator, compass, cookie, defaultFurnaceBurnTime, diamond, doorIron, doorWood, dyePowder, egg, emerald, emptyMap, enchantedBook, enderPearl, expBottle, eyeOfEnder, feather, fermentedSpiderEye, field_111210_e, FILTERABLE_FINE, FILTERABLE_NARROW, FILTERABLE_NO_PROPERTIES, FILTERABLE_SMALL, FILTERABLE_SOLID_BLOCK, FILTERABLE_THIN, fireballCharge, firework, fireworkCharge, fishCooked, fishingRod, fishRaw, flint, flintAndSteel, flowerPot, ghastTear, glassBottle, glowstone, goldenCarrot, goldNugget, gunpowder, hasSubtypes, helmetChain, helmetDiamond, helmetGold, helmetIron, helmetLeather, hoeDiamond, hoeGold, hoeIron, hoeStone, hoeWood, horseArmorDiamond, horseArmorGold, horseArmorIron, iconString, ingotGold, ingotIron, isInceratedInCrucible, itemFrame, itemIcon, itemID, itemRand, itemsList, leash, leather, legsChain, legsDiamond, legsGold, legsIron, legsLeather, magmaCream, map, maxStackSize, melon, melonSeeds, minecartCrate, minecartEmpty, minecartHopper, minecartPowered, minecartTnt, modID, modIDSetter, monsterPlacer, nameTag, netherQuartz, netherrackBrick, netherStalkSeeds, netherStar, painting, paper, pickaxeDiamond, pickaxeGold, pickaxeIron, pickaxeStone, pickaxeWood, plateChain, plateDiamond, plateGold, plateIron, plateLeather, pocketSundial, poisonousPotato, porkCooked, porkRaw, potato, potion, pumpkinPie, pumpkinSeeds, record11, record13, recordBlocks, recordCat, recordChirp, recordFar, recordMall, recordMellohi, recordStal, recordStrad, recordWait, recordWard, redstone, redstoneRepeater, reed, rottenFlesh, saddle, seeds, shears, shovelDiamond, shovelGold, shovelIron, shovelStone, shovelWood, sign, silk, skull, slimeBall, snowball, speckledMelon, spiderEye, stick, sugar, suppressConflictWarnings, swordDiamond, swordGold, swordIron, swordStone, swordWood, wheat, writableBook, writtenBook -
Constructor Summary
ConstructorsConstructorDescriptionItemArmor(int par1, EnumArmorMaterial par2EnumArmorMaterial, int par3, int par4) -
Method Summary
Modifier and TypeMethodDescriptionvoidfunc_82813_b(ItemStack par1ItemStack, int par2) static Iconfunc_94602_b(int par0) Return the armor material for this armor item.intReturn the color for the specified armor ItemStack.intgetColorFromItemStack(ItemStack par1ItemStack, int par2) getIconFromDamageForRenderPass(int par1, int par2) Gets an icon index based on an item's damage value and the given render passbooleangetIsRepairable(ItemStack par1ItemStack, ItemStack par2ItemStack) Return whether this item is repairable in an anvil.intReturn the enchantability factor of the item, most of the time is based on material.booleanReturn whether the specified armor ItemStack has a color.booleanisEnchantmentApplicable(Enchantment enchantment) onItemRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer) Called whenever this item is equipped and the right mouse button is pressed.voidregisterIcons(IconRegister par1IconRegister) voidremoveColor(ItemStack par1ItemStack) Remove the color from the specified armor ItemStack.booleanMethods inherited from class net.minecraft.src.Item
addInformation, canHarvestBlock, canItemBeUsedByPlayer, canItemEditBlocks, createItemAsEntityInWorld, doesConsumeContainerItemWhenCrafted, doesContainerItemLeaveCraftingGrid, doZombiesConsume, getAnimationIcon, getBuoyancy, getCampfireBurnTime, getCanBeFedDirectlyIntoBrickOven, getCanBeFedDirectlyIntoCampfire, getCanItemBeSetOnFireOnUse, getCanItemStartFireOnUse, getChickenFoodValue, getContainerItem, getCreativeTab, getCustomItemEntity, getExhaustionOnUsedToHarvestBlock, getFurnaceBurnTime, getHasSubtypes, getHerbivoreFoodValue, getHopperFilterIcon, getIconFromDamage, getIconIndex, getIconString, getInfernalMaxEnchantmentCost, getInfernalMaxNumEnchants, getItemAttributeModifiers, getItemDisplayName, getItemRightClickCooldown, getItemStackDisplayName, getItemStackLimit, getItemUseAction, getItemUseWarmupDuration, getMaxDamage, getMaxItemUseDuration, getMetadata, getModId, getMovingObjectPositionFromPlayer, getPigFoodValue, getPotionEffect, getRarity, getShareTag, getSpriteNumber, getStatName, getStrVsBlock, getSubItems, getUnlocalizedName, getUnlocalizedName, getUnlocalizedNameInefficiently, getWolfHealAmount, hasContainerItem, hasCustomItemEntity, hasEffect, hideFromEMI, hitEntity, ignoreDamageWhenComparingDuringUse, initializeStackOnGiveCommand, isConsumedInCrafting, isDamageable, isDamagedInCrafting, isEfficientVsBlock, isFull3D, isIncineratedInCrucible, isItemTool, isMap, isMultiUsePerClick, isPotionIngredient, isWolfFood, itemInteractionForEntity, onBlockDestroyed, onBrokenInCrafting, onCreated, onDamagedInCrafting, onEaten, onItemUse, onItemUsedByBlockDispenser, onPlayerStoppedUsing, onUpdate, onUsedInCrafting, onUsedInCrafting, setAllAxesToBeEffectiveVsBlock, setAllPicksToBeEffectiveVsBlock, setAllShovelsToBeEffectiveVsBlock, setAsBasicChickenFood, setAsBasicHerbivoreFood, setAsBasicPigFood, setBuoyancy, setBuoyant, setChickenFoodValue, setContainerItem, setCreativeTab, setCustomItemEntity, setFull3D, setfurnaceburntime, setfurnaceburntime, setHasSubtypes, setHerbivoreFoodValue, setIncineratedInCrucible, setInfernalMaxEnchantmentCost, setInfernalMaxNumEnchants, setItemRightClickCooldown, setMaxDamage, setMaxStackSize, setModID, setNeutralBuoyant, setNonBuoyant, setNotIncineratedInCrucible, setPigFoodValue, setPotionEffect, setTextureName, setUnlocalizedName, shouldApplyAttributesWhenHeld, shouldApplyAttributesWhenWorn, shouldRotateAroundWhenRendering, updateUsingItem
-
Field Details
-
field_94603_a
-
armorType
public final int armorTypeStores the armor type: 0 is helmet, 1 is plate, 2 is legs and 3 is boots -
damageReduceAmount
public int damageReduceAmountHolds the amount of damage that the armor reduces at full durability. -
renderIndex
public final int renderIndexUsed 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 Details
-
ItemArmor
-
-
Method Details
-
getColorFromItemStack
- Overrides:
getColorFromItemStackin classItem
-
requiresMultipleRenderPasses
public boolean requiresMultipleRenderPasses()- Overrides:
requiresMultipleRenderPassesin classItem
-
getItemEnchantability
public int getItemEnchantability()Return the enchantability factor of the item, most of the time is based on material.- Overrides:
getItemEnchantabilityin classItem
-
getArmorMaterial
Return the armor material for this armor item. -
hasColor
Return whether the specified armor ItemStack has a color. -
getColor
Return the color for the specified armor ItemStack. -
getIconFromDamageForRenderPass
Gets an icon index based on an item's damage value and the given render pass- Overrides:
getIconFromDamageForRenderPassin classItem
-
removeColor
Remove the color from the specified armor ItemStack. -
func_82813_b
-
getIsRepairable
Return whether this item is repairable in an anvil.- Overrides:
getIsRepairablein classItem
-
registerIcons
- Overrides:
registerIconsin classItem
-
onItemRightClick
public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer) Called whenever this item is equipped and the right mouse button is pressed. Args: itemStack, world, entityPlayer- Overrides:
onItemRightClickin classItem
-
func_94602_b
-
isEnchantmentApplicable
- Overrides:
isEnchantmentApplicablein classItem
-