public class HeightSelectionDecorator extends AbstractGenerationPass implements Decorator
SurfaceDecorator, but switches between two different decorators based on the elevation of the highest block in the chunk.Decorator.SkipRegistrationAsPopulatorPopulator.SkipRegistrationAsFinisher| Modifier and Type | Field and Description |
|---|---|
protected Decorator[] |
above |
protected double |
additionalOffset |
protected boolean |
addSeaLevelToOffset |
protected Decorator[] |
below |
static org.cloudburstmc.api.util.Identifier |
ID |
protected net.daporkchop.lib.noise.NoiseSource |
threshold |
protected NoiseGenerator |
thresholdNoise |
EMPTY_ARRAY| Constructor and Description |
|---|
HeightSelectionDecorator() |
| Modifier and Type | Method and Description |
|---|---|
void |
decorate(net.daporkchop.lib.random.PRandom random,
org.cloudburstmc.api.level.chunk.Chunk chunk,
int x,
int z)
Decorates a given chunk.
|
org.cloudburstmc.api.util.Identifier |
getId() |
protected void |
init0(long levelSeed,
long localSeed,
StandardGenerator generator) |
init, setSeedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfinish, populateinitpublic static final org.cloudburstmc.api.util.Identifier ID
protected net.daporkchop.lib.noise.NoiseSource threshold
protected double additionalOffset
protected Decorator[] below
protected Decorator[] above
protected NoiseGenerator thresholdNoise
protected boolean addSeaLevelToOffset
protected void init0(long levelSeed,
long localSeed,
StandardGenerator generator)
init0 in class AbstractGenerationPasspublic void decorate(net.daporkchop.lib.random.PRandom random,
org.cloudburstmc.api.level.chunk.Chunk chunk,
int x,
int z)
Decoratordecorate in interface Decoratorrandom - 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 decorateCopyright © 2021. All rights reserved.