Class FeatureHugeTree

All Implemented Interfaces:
Predicate<org.cloudburstmc.api.block.BlockState>, WorldFeature, BlockFilter
Direct Known Subclasses:
FeatureDarkOakTree, FeatureHugeJungleTree, FeatureHugeSpruceTree

public abstract class FeatureHugeTree extends FeatureAbstractTree
Common code for all huge (2x2) tree types.
Author:
DaPorkchop_
  • Constructor Details

  • Method Details

    • place

      public boolean place(org.cloudburstmc.api.level.ChunkManager level, net.daporkchop.lib.random.PRandom random, int x, int y, int z)
      Description copied from interface: WorldFeature
      Tries to place this feature into the given level at the given position.
      Specified by:
      place in interface WorldFeature
      Overrides:
      place in class FeatureAbstractTree
      Parameters:
      level - the level to place the feature into
      random - an instance of PRandom for generating random numbers
      x - the X coordinate to generate the feature at
      y - the Y coordinate to generate the feature at
      z - the Z coordinate to generate the feature at
      Returns:
      whether or not the feature could be placed
    • canPlace

      protected boolean canPlace(org.cloudburstmc.api.level.ChunkManager level, net.daporkchop.lib.random.PRandom random, int x, int y, int z, int height)
      Specified by:
      canPlace in class FeatureAbstractTree
    • placeTrunk

      protected void placeTrunk(org.cloudburstmc.api.level.ChunkManager level, net.daporkchop.lib.random.PRandom random, int x, int y, int z, int height, org.cloudburstmc.api.block.BlockState log, org.cloudburstmc.api.block.BlockState leaves)
      Specified by:
      placeTrunk in class FeatureAbstractTree
    • finish

      protected void finish(org.cloudburstmc.api.level.ChunkManager level, net.daporkchop.lib.random.PRandom random, int x, int y, int z, int height, org.cloudburstmc.api.block.BlockState log, org.cloudburstmc.api.block.BlockState leaves)
      Specified by:
      finish in class FeatureAbstractTree
    • placeCircularLeafLayer

      protected void placeCircularLeafLayer(org.cloudburstmc.api.level.ChunkManager level, int x, int y, int z, int radius, org.cloudburstmc.api.block.BlockState block)