Class SlabBlockItem

Direct Known Subclasses:
DirtSlabBlockItem, GrassSlabBlockITem, LooseDirtSlabBlockItem, LooseSnowSlabBlockItem, MyceliumSlabBlockItem, SandAndGravelSlabBlockItem, SlabWithMetadataBlockItem, WoolSlabBlockItem

public class SlabBlockItem extends ItemBlock
  • Constructor Details

    • SlabBlockItem

      public SlabBlockItem(int iItemID)
  • Method Details

    • onItemUse

      public boolean onItemUse(ItemStack itemStack, EntityPlayer player, World world, int i, int j, int k, int iFacing, float fClickX, float fClickY, float fClickZ)
      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
    • attemptToCombineWithBlock

      public boolean attemptToCombineWithBlock(ItemStack itemStack, EntityPlayer player, World world, int i, int j, int k, int iFacing, boolean bFacingTest)
    • canCombineWithBlock

      public boolean canCombineWithBlock(World world, int i, int j, int k, int iItemDamage)
    • convertToFullBlock

      public boolean convertToFullBlock(World world, int i, int j, int k)
    • canPlaceItemBlockOnSide

      public boolean canPlaceItemBlockOnSide(World world, int i, int j, int k, int iFacing, EntityPlayer player, ItemStack itemStack)
      Overrides:
      canPlaceItemBlockOnSide in class PlaceAsBlockItem