Class AlterGroundDecorator

java.lang.Object
com.github.darksoulq.abyssallib.world.gen.feature.tree.decorator.TreeDecorator
com.github.darksoulq.abyssallib.world.gen.feature.tree.decorator.AlterGroundDecorator

public class AlterGroundDecorator extends TreeDecorator
A tree decorator that alters the ground surface directly beneath the generated tree.
  • Field Details

  • Constructor Details

    • AlterGroundDecorator

      public AlterGroundDecorator(BlockStateProvider provider)
      Constructs a new AlterGroundDecorator.
      Parameters:
      provider - The block state provider for the new ground.
  • Method Details

    • decorate

      public void decorate(WorldGenAccess level, Random random, Set<org.bukkit.Location> logs, Set<org.bukkit.Location> leaves)
      Evaluates the lowest log coordinates and converts a radius of ground blocks into the specified provider state.
      Specified by:
      decorate in class TreeDecorator
      Parameters:
      level - The world generation accessor.
      random - The deterministic random source.
      logs - The set of absolute coordinates where trunk blocks were placed.
      leaves - The set of absolute coordinates where foliage blocks were placed.
    • getType

      public TreeDecoratorType<?> getType()
      Retrieves the specific type definition for this decorator.
      Specified by:
      getType in class TreeDecorator
      Returns:
      The tree decorator type associated with this instance.