Class FallingSlabBlock

Direct Known Subclasses:
LooseDirtSlabBlock, LooseSnowSlabBlock, LooseSparseGrassSlabBlock, MortarReceiverSlabBlock, SandAndGravelSlabBlock

public abstract class FallingSlabBlock extends SlabBlock
  • Constructor Details

    • FallingSlabBlock

      public FallingSlabBlock(int iBlockID, Material material)
  • Method Details

    • attemptToCombineWithFallingEntity

      public boolean attemptToCombineWithFallingEntity(World world, int i, int j, int k, EntityFallingSand entity)
      Description copied from class: Block
      returns true if the block has combined with the entity
      Overrides:
      attemptToCombineWithFallingEntity in class Block
    • isFallingBlock

      public boolean isFallingBlock()
      Overrides:
      isFallingBlock in class Block
    • onBlockAdded

      public void onBlockAdded(World world, int i, int j, int k)
      Description copied from class: Block
      Called whenever the block is added into the world. Args: world, x, y, z // +++START EDIT+++ FCNOTE: Called on server only // ---END EDIT---
      Overrides:
      onBlockAdded in class Block
    • 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
    • updateTick

      public void updateTick(World world, int i, int j, int k, Random rand)
      Description copied from class: Block
      Ticks the block if it's been scheduled // +++START EDIT+++ FCNOTE: Called on server only // ---END EDIT---
      Overrides:
      updateTick in class Block
    • tickRate

      public int tickRate(World world)
      Description copied from class: Block
      How many world ticks before ticking
      Overrides:
      tickRate in class Block
    • onStartFalling

      protected void onStartFalling(EntityFallingSand entity)
      Description copied from class: Block
      Only called on server
      Overrides:
      onStartFalling in class Block
    • canBePlacedUpsideDownAtLocation

      public boolean canBePlacedUpsideDownAtLocation(World world, int i, int j, int k)
      Overrides:
      canBePlacedUpsideDownAtLocation in class SlabBlock
    • shouldRenderWhileFalling

      @Environment(CLIENT) public boolean shouldRenderWhileFalling(World world, EntityFallingSand entity)
      Overrides:
      shouldRenderWhileFalling in class Block
    • renderFallingBlock

      @Environment(CLIENT) public void renderFallingBlock(RenderBlocks renderBlocks, int i, int j, int k, int iMetadata)
      Description copied from class: Block
      Applies both to falling blocks, and those pushed by pistons
      Overrides:
      renderFallingBlock in class Block