Class MushroomCapBlock

Direct Known Subclasses:
LegacyMushroomCapBlock

public class MushroomCapBlock extends BlockMushroomCap
  • Field Details

    • mushroomType

      protected final int mushroomType
  • Constructor Details

    • MushroomCapBlock

      public MushroomCapBlock(int iBlockID, int iMushroomType)
  • Method Details

    • idDropped

      public int idDropped(int iMetadata, Random rand, int iFortuneModifier)
      Description copied from class: BlockMushroomCap
      Returns the ID of the items to drop on destruction.
      Overrides:
      idDropped in class BlockMushroomCap
    • canMobsSpawnOn

      public boolean canMobsSpawnOn(World world, int i, int j, int k)
      Description copied from class: Block
      This is only a first-pass indicator as to whether ANY mobs can spawn on top of the block, so stuff like leaves where only Jungle Spiders can spawn on them, should still return true.
      Overrides:
      canMobsSpawnOn in class Block
    • idPicked

      @Environment(CLIENT) public int idPicked(World world, int i, int j, int k)
      Description copied from class: BlockMushroomCap
      only called by clickMiddleMouseButton , and passed to inventory.setCurrentItem (along with isCreative)
      Overrides:
      idPicked in class BlockMushroomCap