Class BlockMushroom

Direct Known Subclasses:
MushroomBlockBrown

public class BlockMushroom extends BlockFlower
  • Constructor Details

    • BlockMushroom

      protected BlockMushroom(int par1)
  • Method Details

    • fertilizeMushroom

      public boolean fertilizeMushroom(World par1World, int par2, int par3, int par4, Random par5Random)
      Fertilize the mushroom.
    • onCreativeBonemealApplied

      public boolean onCreativeBonemealApplied(World world, int x, int y, int z)
      Called when bonemeal is applied in creative mode.
      Overrides:
      onCreativeBonemealApplied in class Block
    • updateTick

      public void updateTick(World world, int x, int y, int z, Random rand)
      Description copied from class: BlockFlower
      Ticks the block if it's been scheduled
      Overrides:
      updateTick in class BlockFlower
    • canPlaceBlockAt

      public boolean canPlaceBlockAt(World world, int i, int j, int k)
      Description copied from class: Block
      Checks to see if its valid to put this block at the specified coordinates. Args: world, x, y, z
      Overrides:
      canPlaceBlockAt in class PlantsBlock
    • canBlockStay

      public boolean canBlockStay(World world, int i, int j, int k)
      Description copied from class: Block
      Can this block stay at this position. Similar to canPlaceBlockAt except gets checked often with plants.
      Overrides:
      canBlockStay in class BlockFlower
    • 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
    • canGrowOnBlock

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

      public boolean canBeCrushedByFallingEntity(World world, int i, int j, int k, EntityFallingSand entity)
      Overrides:
      canBeCrushedByFallingEntity in class Block