Class BlockDirt


public class BlockDirt extends FullBlock
  • Constructor Details

    • BlockDirt

      public BlockDirt(int blockID)
  • Method Details

    • canEndermenPickUpBlock

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

      public int idDropped(int iMetadata, Random rand, int iFortuneModifier)
      Description copied from class: Block
      Returns the ID of the items to drop on destruction.
      Overrides:
      idDropped in class Block
    • 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
    • onBlockDestroyedWithImproperTool

      public void onBlockDestroyedWithImproperTool(World world, EntityPlayer player, int i, int j, int k, int iMetadata)
      Description copied from class: Block
      Called on server only, after the block is removed from the world
      Overrides:
      onBlockDestroyedWithImproperTool in class Block
    • onBlockDestroyedByExplosion

      public void onBlockDestroyedByExplosion(World world, int i, int j, int k, Explosion explosion)
      Description copied from class: Block
      // +++START EDIT+++ Called upon the block being destroyed by an explosion // ---END EDIT---
      Overrides:
      onBlockDestroyedByExplosion in class Block
    • onNeighborDirtDugWithImproperTool

      protected void onNeighborDirtDugWithImproperTool(World world, int i, int j, int k, int iToFacing)
      Overrides:
      onNeighborDirtDugWithImproperTool 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
    • 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
    • canReedsGrowOnBlock

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

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

      public boolean canWildVegetationGrowOnBlock(World world, int i, int j, int k)
      Description copied from class: Block
      Covers stuff like flowers and tall grass
      Overrides:
      canWildVegetationGrowOnBlock in class Block
    • getCanBlightSpreadToBlock

      public boolean getCanBlightSpreadToBlock(World world, int i, int j, int k, int iBlightLevel)
      Overrides:
      getCanBlightSpreadToBlock in class Block
    • canConvertBlock

      public boolean canConvertBlock(ItemStack stack, World world, int i, int j, int k)
      Overrides:
      canConvertBlock in class Block
    • convertBlock

      public boolean convertBlock(ItemStack stack, World world, int x, int y, int z, int side)
      Description copied from class: Block
      Returns false if the block has not been replaced with another, and should be removed
      Overrides:
      convertBlock in class Block
    • shouldPlayStandardConvertSound

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

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