Interface Populator
- All Superinterfaces:
Finisher,GenerationPass
- All Known Subinterfaces:
Decorator
- All Known Implementing Classes:
AbstractPlantPopulator,AbstractReplacingPopulator,AbstractTreePopulator,BedrockDecorator,BlobPopulator,BushPopulator,ChancePopulator,ChancePopulator.Column,CocoaPopulator,DeepSurfaceDecorator,DepthNoiseDecorator,DistanceSelectionDecorator,DistanceSelectionPopulator,DoublePlantPopulator,EndIslandPopulator,GlowstonePopulator,GroundCoverDecorator,HeightSelectionDecorator,HugeTreePopulator,LakePopulator,MesaSurfaceDecorator,NextGenerationPass,NoiseSelectionDecorator,NoiseSelectionPopulator,OrePopulator,PlantPopulator,ReplaceTopDecorator,ScatteredCoverDecorator,ShrubPopulator,SpikesPopulator,SpringPopulator,SubmergedOrePopulator,SurfaceDecorator,TreePopulator
Sets individual blocks of a chunk and its neighbors, allowing to generate larger structures and features.
- Author:
- DaPorkchop_
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault 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()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- 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
void populate(net.daporkchop.lib.random.PRandom random, org.cloudburstmc.api.level.ChunkManager level, int blockX, int blockZ)Populates a given chunk.- 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
-
getId
org.cloudburstmc.api.util.Identifier getId()- Specified by:
getIdin interfaceFinisher- Specified by:
getIdin interfaceGenerationPass- Returns:
- the identifier of this generation pass
-