Class MegaRedwoodTree

All Implemented Interfaces:
TerrainObject
Direct Known Subclasses:
MegaPineTree

public class MegaRedwoodTree extends MegaJungleTree
  • Field Details

    • leavesHeight

      protected int leavesHeight
  • Constructor Details

    • MegaRedwoodTree

      public MegaRedwoodTree(Random random, BlockStateDelegate delegate)
      Initializes this tree with a random height, preparing it to attempt to generate.
      Parameters:
      random - the PRNG
      delegate - the BlockStateDelegate used to check for space and to fill wood and leaf
  • Method Details

    • setLeavesHeight

      protected final void setLeavesHeight(int leavesHeight)
    • generate

      public boolean generate(org.bukkit.World world, Random random, int blockX, int blockY, int blockZ)
      Description copied from interface: TerrainObject
      Generates this feature.
      Specified by:
      generate in interface TerrainObject
      Overrides:
      generate in class MegaJungleTree
      Parameters:
      world - the world to generate in
      random - the PRNG that will choose the size and a few details of the shape
      blockX - the base X coordinate
      blockY - the base Y coordinate
      blockZ - the base Z coordinate
      Returns:
      true if successfully generated
    • generateDirtBelowTrunk

      protected void generateDirtBelowTrunk(org.bukkit.World world, int blockX, int blockY, int blockZ)
      Overrides:
      generateDirtBelowTrunk in class MegaJungleTree