public interface Decorator extends Populator
Similar to a populator, but only operates on an individual block column in a single chunk.
| Modifier and Type | Interface and Description |
|---|---|
static interface |
Decorator.SkipRegistrationAsPopulator
|
Populator.SkipRegistrationAsFinisher| Modifier and Type | Field and Description |
|---|---|
static Decorator[] |
EMPTY_ARRAY |
| Modifier and Type | Method and Description |
|---|---|
void |
decorate(net.daporkchop.lib.random.PRandom random,
IChunk chunk,
int x,
int z)
Decorates a given chunk.
|
default void |
finish(net.daporkchop.lib.random.PRandom random,
ChunkManager level,
int blockX,
int blockZ)
Finishes a given chunk.
|
Identifier |
getId() |
default void |
populate(net.daporkchop.lib.random.PRandom random,
ChunkManager level,
int blockX,
int blockZ)
Populates a given chunk.
|
initstatic final Decorator[] EMPTY_ARRAY
default void finish(net.daporkchop.lib.random.PRandom random,
ChunkManager level,
int blockX,
int blockZ)
Finisherfinish in interface Finisherfinish in interface Populatorrandom - 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 finishdefault void populate(net.daporkchop.lib.random.PRandom random,
ChunkManager level,
int blockX,
int blockZ)
Populatorpopulate in interface Populatorrandom - 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 populatevoid decorate(net.daporkchop.lib.random.PRandom random,
IChunk chunk,
int x,
int z)
random - an instance of PRandom for 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 decorateIdentifier getId()
Copyright © 2020. All rights reserved.