Class ItemColored

Direct Known Subclasses:
ItemLilyPad

public class ItemColored extends ItemBlock
  • Constructor Details

    • ItemColored

      public ItemColored(int par1, boolean par2)
  • Method Details

    • getColorFromItemStack

      public int getColorFromItemStack(ItemStack par1ItemStack, int par2)
      Overrides:
      getColorFromItemStack in class ItemBlock
    • getIconFromDamage

      public Icon getIconFromDamage(int par1)
      Gets an icon index based on an item's damage value
      Overrides:
      getIconFromDamage in class ItemBlock
    • getMetadata

      public int getMetadata(int par1)
      Returns the metadata of the block which this Item (ItemBlock) can place
      Overrides:
      getMetadata in class PlaceAsBlockItem
    • setBlockNames

      public ItemColored setBlockNames(String[] par1ArrayOfStr)
      Sets the array of strings to be used for name lookups from item damage to metadata
    • getUnlocalizedName

      public String getUnlocalizedName(ItemStack par1ItemStack)
      Returns the unlocalized name of this item. This version accepts an ItemStack so different stacks can have different names based on their damage or NBT.
      Overrides:
      getUnlocalizedName in class ItemBlock