Package api.item.items
Class ArmorItem
java.lang.Object
net.minecraft.src.Item
net.minecraft.src.ItemArmor
api.item.items.ArmorItem
- Direct Known Subclasses:
ArmorItemDiamond,ArmorItemGold,ArmorItemIron,ArmorItemLeather,ArmorItemMod
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final UUID[]protected final intprotected static final UUID[]protected static final UUID[]protected final doubleprotected static final UUID[]Fields inherited from class net.minecraft.src.ItemArmor
armorType, damageReduceAmount, field_94603_a, renderIndexFields 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
ConstructorsConstructorDescriptionArmorItem(int itemID, EnumArmorMaterial armorMaterial, int renderIndex, int armorType, int weight) ArmorItem(int itemID, EnumArmorMaterial armorMaterial, int renderIndex, int armorType, int weight, double knockbackResistance) -
Method Summary
Modifier and TypeMethodDescriptioncom.google.common.collect.MultimapGets a map of item attribute modifiers, used by ItemSword to increase hit damage.voidonCreated(ItemStack stack, World world, EntityPlayer player) Called when item is crafted/smelted.booleanMethods inherited from class net.minecraft.src.ItemArmor
func_82813_b, func_94602_b, getArmorMaterial, getColor, getColorFromItemStack, getIconFromDamageForRenderPass, getIsRepairable, getItemEnchantability, hasColor, isEnchantmentApplicable, onItemRightClick, registerIcons, removeColor, requiresMultipleRenderPassesMethods 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, 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, 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, shouldApplyAttributesWhenWorn, shouldRotateAroundWhenRendering, updateUsingItem
-
Field Details
-
armorAttributeUUIDs
-
knockbackResistanceAttributeUUIDs
-
armorWeightAttributeUUIDs
-
hungerCostAttributeUUIDs
-
armorWeight
protected final int armorWeight -
knockbackResistance
protected final double knockbackResistance
-
-
Constructor Details
-
ArmorItem
public ArmorItem(int itemID, EnumArmorMaterial armorMaterial, int renderIndex, int armorType, int weight) -
ArmorItem
public ArmorItem(int itemID, EnumArmorMaterial armorMaterial, int renderIndex, int armorType, int weight, double knockbackResistance)
-
-
Method Details
-
onCreated
Description copied from class:ItemCalled when item is crafted/smelted. Used only by maps so far. -
getItemAttributeModifiers
public com.google.common.collect.Multimap getItemAttributeModifiers()Description copied from class:ItemGets a map of item attribute modifiers, used by ItemSword to increase hit damage.- Overrides:
getItemAttributeModifiersin classItem
-
shouldApplyAttributesWhenHeld
public boolean shouldApplyAttributesWhenHeld()- Overrides:
shouldApplyAttributesWhenHeldin classItem
-