Class SaplingBlockItem


public class SaplingBlockItem extends ItemBlock
  • Constructor Details

    • SaplingBlockItem

      public SaplingBlockItem(int itemID, Block block)
  • Method Details

    • getMetadata

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

      @Environment(CLIENT) public Icon getIconFromDamage(int itemDamage)
      Description copied from class: ItemBlock
      Gets an icon index based on an item's damage value
      Overrides:
      getIconFromDamage in class ItemBlock
    • getUnlocalizedName

      @Environment(CLIENT) public String getUnlocalizedName(ItemStack itemStack)
      Description copied from class: ItemBlock
      // +++START EDIT+++ // ---END EDIT--- 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