public interface Populator extends Finisher
| Modifier and Type | Interface and Description |
|---|---|
static interface |
Populator.SkipRegistrationAsFinisher
|
| Modifier and Type | Field and Description |
|---|---|
static Populator[] |
EMPTY_ARRAY |
| Modifier and Type | Method and Description |
|---|---|
default void |
finish(net.daporkchop.lib.random.PRandom random,
ChunkManager level,
int blockX,
int blockZ)
Finishes a given chunk.
|
Identifier |
getId() |
void |
populate(net.daporkchop.lib.random.PRandom random,
ChunkManager level,
int blockX,
int blockZ)
Populates a given chunk.
|
initstatic final Populator[] EMPTY_ARRAY
default void finish(net.daporkchop.lib.random.PRandom random,
ChunkManager level,
int blockX,
int blockZ)
Finisherfinish in interface Finisherrandom - an instance of PRandom for generating random numbers, initialized with a seed based on chunk's positionlevel - a ChunkManager containing 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 finishvoid populate(net.daporkchop.lib.random.PRandom random,
ChunkManager level,
int blockX,
int blockZ)
random - an instance of PRandom for generating random numbers, initialized with a seed based on chunk's positionlevel - a ChunkManager containing 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 populateIdentifier getId()
getId in interface FinishergetId in interface GenerationPassCopyright © 2020. All rights reserved.