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
A tree decorator that alters the ground surface directly beneath the generated tree.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Codec<AlterGroundDecorator> The codec used for serializing and deserializing the alter ground decorator.static final TreeDecoratorType<AlterGroundDecorator> The registered type definition for the alter ground tree decorator. -
Constructor Summary
ConstructorsConstructorDescriptionAlterGroundDecorator(BlockStateProvider provider) Constructs a new AlterGroundDecorator. -
Method Summary
Modifier and TypeMethodDescriptionvoiddecorate(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.getType()Retrieves the specific type definition for this decorator.
-
Field Details
-
CODEC
The codec used for serializing and deserializing the alter ground decorator. -
TYPE
The registered type definition for the alter ground tree decorator.
-
-
Constructor Details
-
AlterGroundDecorator
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:
decoratein classTreeDecorator- 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
Retrieves the specific type definition for this decorator.- Specified by:
getTypein classTreeDecorator- Returns:
- The tree decorator type associated with this instance.
-