Class BlockDeadBush


public class BlockDeadBush extends BlockFlower
  • Field Details

  • Constructor Details

    • BlockDeadBush

      protected BlockDeadBush(int par1)
  • Method Details

    • idDropped

      public int idDropped(int par1, Random par2Random, int par3)
      Returns the ID of the items to drop on destruction.
      Overrides:
      idDropped in class Block
    • harvestBlock

      public void harvestBlock(World par1World, EntityPlayer par2EntityPlayer, int par3, int par4, int par5, int par6)
      Called when the player destroys a block with an item that can harvest it. (i, j, k) are the coordinates of the block and l is the block's subtype/damage.
      Overrides:
      harvestBlock in class Block
    • canSpitWebReplaceBlock

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

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

      public boolean canBeGrazedOn(IBlockAccess blockAccess, int i, int j, int k, EntityAnimal animal)
      Overrides:
      canBeGrazedOn in class BlockFlower
    • canGrowOnBlock

      protected boolean canGrowOnBlock(World world, int i, int j, int k)
      Overrides:
      canGrowOnBlock in class PlantsBlock