Class ArmorItemMod

Direct Known Subclasses:
ArmorItemChain, ArmorItemGimpSuit, ArmorItemPadded, ArmorItemSpecial, ArmorItemSteel, ArmorItemTanned, ArmorItemWool

public abstract class ArmorItemMod extends ArmorItem
  • Constructor Details

    • ArmorItemMod

      public ArmorItemMod(int itemID, EnumArmorMaterial armorMaterial, int renderIndex, int armorType, int weight)
    • ArmorItemMod

      public ArmorItemMod(int itemID, EnumArmorMaterial armorMaterial, int renderIndex, int armorType, int weight, double knockbackResistance)
  • Method Details

    • hasColor

      public boolean hasColor(ItemStack stack)
      Description copied from class: ItemArmor
      Return whether the specified armor ItemStack has a color.
      Overrides:
      hasColor in class ItemArmor
    • getColor

      public int getColor(ItemStack stack)
      Description copied from class: ItemArmor
      Return the color for the specified armor ItemStack.
      Overrides:
      getColor in class ItemArmor
    • removeColor

      public void removeColor(ItemStack stack)
      Description copied from class: ItemArmor
      Remove the color from the specified armor ItemStack.
      Overrides:
      removeColor in class ItemArmor
    • func_82813_b

      public void func_82813_b(ItemStack par1ItemStack, int par2)
      Overrides:
      func_82813_b in class ItemArmor
    • hasCustomColors

      public boolean hasCustomColors()
    • hasSecondRenderLayerWhenWorn

      public boolean hasSecondRenderLayerWhenWorn()
    • getDefaultColor

      public int getDefaultColor()
    • getWornTextureDirectory

      public String getWornTextureDirectory()
    • getWornTexturePrefix

      public abstract String getWornTexturePrefix()
    • requiresMultipleRenderPasses

      @Environment(CLIENT) public boolean requiresMultipleRenderPasses()
      Overrides:
      requiresMultipleRenderPasses in class ItemArmor
    • getIconFromDamageForRenderPass

      @Environment(CLIENT) public Icon getIconFromDamageForRenderPass(int iDamage, int iRenderPass)
      Description copied from class: ItemArmor
      Gets an icon index based on an item's damage value and the given render pass
      Overrides:
      getIconFromDamageForRenderPass in class ItemArmor