Class LooseDirtSlabBlock


public class LooseDirtSlabBlock extends FallingSlabBlock
  • Constructor Details

    • LooseDirtSlabBlock

      public LooseDirtSlabBlock(int iBlockID)
  • Method Details

    • dropComponentItemsOnBadBreak

      public boolean dropComponentItemsOnBadBreak(World world, int i, int j, int k, int iMetadata, float fChanceOfDrop)
      Description copied from class: Block
      Called by explosions and improper tool use. Should return true if the block processes its own drops through this method, false otherwise Note that the block may no longer be at the specified position when this is called
      Overrides:
      dropComponentItemsOnBadBreak in class Block
    • getCanGrassSpreadToBlock

      public boolean getCanGrassSpreadToBlock(World world, int i, int j, int k)
      Overrides:
      getCanGrassSpreadToBlock in class Block
    • spreadGrassToBlock

      public boolean spreadGrassToBlock(World world, int x, int y, int z)
      Overrides:
      spreadGrassToBlock in class Block
    • getCanMyceliumSpreadToBlock

      public boolean getCanMyceliumSpreadToBlock(World world, int i, int j, int k)
      Overrides:
      getCanMyceliumSpreadToBlock in class Block
    • spreadMyceliumToBlock

      public boolean spreadMyceliumToBlock(World world, int x, int y, int z)
      Overrides:
      spreadMyceliumToBlock in class Block
    • getCombinedBlockID

      public int getCombinedBlockID(int iMetadata)
      Specified by:
      getCombinedBlockID in class SlabBlock
    • attemptToCombineWithFallingEntity

      public boolean attemptToCombineWithFallingEntity(World world, int x, int y, int z, EntityFallingSand entity)
      Description copied from class: Block
      returns true if the block has combined with the entity
      Overrides:
      attemptToCombineWithFallingEntity in class FallingSlabBlock
    • canBePistonShoveled

      public boolean canBePistonShoveled(World world, int i, int j, int k)
      Overrides:
      canBePistonShoveled in class Block
    • onVegetationAboveGrazed

      public void onVegetationAboveGrazed(World world, int i, int j, int k, EntityAnimal animal)
      Overrides:
      onVegetationAboveGrazed in class Block
    • isBreakableBarricade

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

      @Environment(CLIENT) public void registerIcons(IconRegister register)
      Description copied from class: Block
      When this method is called, your block should register all the icons it needs with the given IconRegister. This is the only chance you get to register icons.
      Overrides:
      registerIcons in class Block