Class PlanterBlockItem


public class PlanterBlockItem extends ItemBlock
  • Constructor Details

    • PlanterBlockItem

      public PlanterBlockItem(int i)
  • Method Details

    • getMetadata

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

      public String getItemDisplayName(ItemStack stack)
      Overrides:
      getItemDisplayName in class Item
    • getUnlocalizedName

      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