Class AttachedSlabBlock

Direct Known Subclasses:
DirtSlabBlock, GrassSlabBlock, MyceliumSlabBlock

public abstract class AttachedSlabBlock extends SlabBlock
  • Constructor Details

    • AttachedSlabBlock

      protected AttachedSlabBlock(int iBlockID, Material material)
  • Method Details

    • canPlaceBlockOnSide

      public boolean canPlaceBlockOnSide(World world, int i, int j, int k, int iSide)
      Description copied from class: Block
      checks to see if you can place this block can be placed on that side of a block: BlockLever overrides
      Overrides:
      canPlaceBlockOnSide in class Block
    • onBlockPlaced

      public int onBlockPlaced(World world, int i, int j, int k, int iFacing, float fClickX, float fClickY, float fClickZ, int iMetadata)
      Description copied from class: Block
      Called when a block is placed using its ItemBlock. Args: World, X, Y, Z, side, hitX, hitY, hitZ, block metadata
      Overrides:
      onBlockPlaced in class SlabBlock
    • onNeighborBlockChange

      public void onNeighborBlockChange(World world, int i, int j, int k, int iNeighborBlockID)
      Description copied from class: Block
      Lets the block know when one of its neighbor changes. Doesn't know which neighbor changed (coordinates passed are their own) Args: x, y, z, neighbor blockID // +++START EDIT+++ FCNOTE: Only called on server // ---END EDIT---
      Overrides:
      onNeighborBlockChange in class Block
    • isBreakableBarricade

      public boolean isBreakableBarricade(World world, int i, int j, int k, boolean advancedBreaker)
      Overrides:
      isBreakableBarricade in class Block
    • hasValidAnchorToFacing

      protected boolean hasValidAnchorToFacing(World world, int i, int j, int k, int iFacing)
    • onAnchorBlockLost

      protected abstract void onAnchorBlockLost(World world, int i, int j, int k)