Class AestheticVegetationBlockItem


public class AestheticVegetationBlockItem extends ItemBlock
  • Constructor Details

    • AestheticVegetationBlockItem

      public AestheticVegetationBlockItem(int iItemID)
  • Method Details

    • getMetadata

      public int getMetadata(int iItemDamage)
      Description copied from class: Item
      Returns the metadata of the block which this Item (ItemBlock) can place
      Overrides:
      getMetadata in class PlaceAsBlockItem
    • 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
    • onItemUse

      public boolean onItemUse(ItemStack itemStack, EntityPlayer player, World world, int x, int y, int z, int facing, float hitX, float hitY, float hitZ)
      Description copied from class: Item
      Callback for item usage. If the item does something special on right clicking, he will have one of those. Return True if something happen and false if it don't. This is for ITEMS, not BLOCKS
      Overrides:
      onItemUse in class PlaceAsBlockItem
    • getBlockIDToPlace

      public int getBlockIDToPlace(int iItemDamage, int iFacing, float fClickX, float fClickY, float fClickZ)
      Overrides:
      getBlockIDToPlace in class PlaceAsBlockItem
    • getIconFromDamage

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