Class FeatureNormalTree

All Implemented Interfaces:
Predicate<org.cloudburstmc.api.block.BlockState>, WorldFeature, BlockFilter
Direct Known Subclasses:
FeatureJungleTree, FeatureLargeOakTree, FeatureSavannaTree, FeatureSpruceTree, FeatureSwampTree

public class FeatureNormalTree extends FeatureAbstractTree
Generates a normal, vanilla-style tree.
Author:
DaPorkchop_
  • Field Details

    • DEFAULT_HEIGHT

      public static final IntRange DEFAULT_HEIGHT
  • Constructor Details

  • Method Details

    • 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
    • placeLeaves

      protected void placeLeaves(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:
      placeLeaves 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