Class FeatureFallenTree

java.lang.Object
org.cloudburstmc.server.level.feature.ReplacingWorldFeature
org.cloudburstmc.server.level.feature.FeatureFallenTree
All Implemented Interfaces:
Predicate<org.cloudburstmc.api.block.BlockState>, WorldFeature, BlockFilter

public class FeatureFallenTree extends ReplacingWorldFeature
Author:
DaPorkchop_
  • Field Details

    • size

      @NonNull protected final @NonNull IntRange size
    • log

      @NonNull protected final @NonNull org.cloudburstmc.api.block.BlockState log
    • vineChance

      protected final double vineChance
  • Constructor Details

    • FeatureFallenTree

      public FeatureFallenTree()
  • 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.
      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