Class ItemSlab


public class ItemSlab extends ItemBlock
  • Constructor Details

  • 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
    • 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
    • onItemUse

      public boolean onItemUse(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, World par3World, int par4, int par5, int par6, int par7, float par8, float par9, float par10)
      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
    • canPlaceItemBlockOnSide

      public boolean canPlaceItemBlockOnSide(World par1World, int par2, int par3, int par4, int par5, EntityPlayer par6EntityPlayer, ItemStack par7ItemStack)
      Returns true if the given ItemBlock can be placed on the given side of the given block position.
      Overrides:
      canPlaceItemBlockOnSide in class PlaceAsBlockItem