Class ItemLeaves


public class ItemLeaves extends ItemBlock
  • Constructor Details

    • ItemLeaves

      public ItemLeaves(int par1)
  • Method Details

    • getMetadata

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

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

      public int getColorFromItemStack(ItemStack par1ItemStack, int par2)
      Overrides:
      getColorFromItemStack in class ItemBlock
    • 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