Class ItemBlockWithMetadata

Direct Known Subclasses:
ItemSnow, SnowBlockItem

public class ItemBlockWithMetadata extends ItemBlock
  • Constructor Details

    • ItemBlockWithMetadata

      public ItemBlockWithMetadata(int par1, Block par2Block)
  • Method Details

    • 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