Interface Decorator
- All Superinterfaces:
Finisher,GenerationPass,Populator
- All Known Implementing Classes:
BedrockDecorator,DeepSurfaceDecorator,DepthNoiseDecorator,DistanceSelectionDecorator,GroundCoverDecorator,HeightSelectionDecorator,MesaSurfaceDecorator,NextGenerationPass,NoiseSelectionDecorator,ReplaceTopDecorator,ScatteredCoverDecorator,SurfaceDecorator
Allows individual modification of blocks in a chunk after surfaces have been built.
Similar to a populator, but only operates on an individual block column in a single chunk.
- Author:
- DaPorkchop_
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceNested classes/interfaces inherited from interface org.cloudburstmc.server.level.generator.standard.population.Populator
Populator.SkipRegistrationAsFinisher -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoiddecorate(net.daporkchop.lib.random.PRandom random, org.cloudburstmc.api.level.chunk.Chunk chunk, int x, int z)Decorates a given chunk.default voidfinish(net.daporkchop.lib.random.PRandom random, org.cloudburstmc.api.level.ChunkManager level, int blockX, int blockZ)Finishes a given chunk.org.cloudburstmc.api.util.IdentifiergetId()default voidpopulate(net.daporkchop.lib.random.PRandom random, org.cloudburstmc.api.level.ChunkManager level, int blockX, int blockZ)Populates a given chunk.Methods inherited from interface org.cloudburstmc.server.level.generator.standard.misc.GenerationPass
init
-
Field Details
-
EMPTY_ARRAY
-
-
Method Details
-
finish
default void finish(net.daporkchop.lib.random.PRandom random, org.cloudburstmc.api.level.ChunkManager level, int blockX, int blockZ)Description copied from interface:FinisherFinishes a given chunk.- Specified by:
finishin interfaceFinisher- Specified by:
finishin interfacePopulator- Parameters:
random- an instance ofPRandomfor generating random numbers, initialized with a seed based on chunk's positionlevel- aChunkManagercontaining only a 3x3 square of populated chunks, centered around the chunk being finishesblockX- the X coordinate of the block column to finishblockZ- the Z coordinate of the block column to finish
-
populate
default void populate(net.daporkchop.lib.random.PRandom random, org.cloudburstmc.api.level.ChunkManager level, int blockX, int blockZ)Description copied from interface:PopulatorPopulates a given chunk.- Specified by:
populatein interfacePopulator- Parameters:
random- an instance ofPRandomfor generating random numbers, initialized with a seed based on chunk's positionlevel- aChunkManagercontaining only a 3x3 square of generated chunks, centered around the chunk being populatedblockX- the X coordinate of the block column to populateblockZ- the Z coordinate of the block column to populate
-
decorate
void decorate(net.daporkchop.lib.random.PRandom random, org.cloudburstmc.api.level.chunk.Chunk chunk, int x, int z)Decorates a given chunk.- Parameters:
random- an instance ofPRandomfor generating random numbers, initialized with a seed based on chunk's positionchunk- the chunk to be decoratedx- the X coordinate of the block column in the chunk to decoratez- the Z coordinate of the block column in the chunk to decorate
-
getId
org.cloudburstmc.api.util.Identifier getId()
-