public class NoiseSelectionDecorator extends AbstractGenerationPass implements Decorator
SurfaceDecorator, but switches between two different decorators based on the output of a noise function.Decorator.SkipRegistrationAsPopulatorPopulator.SkipRegistrationAsFinisher| Modifier and Type | Field and Description |
|---|---|
protected Decorator[] |
above |
protected Decorator[] |
below |
static Identifier |
ID |
protected Decorator[] |
in |
protected double |
max |
protected double |
min |
protected double |
randomFactor |
protected net.daporkchop.lib.noise.NoiseSource |
selector |
protected NoiseGenerator |
selectorNoise |
EMPTY_ARRAY| Constructor and Description |
|---|
NoiseSelectionDecorator() |
| Modifier and Type | Method and Description |
|---|---|
void |
decorate(net.daporkchop.lib.random.PRandom random,
IChunk chunk,
int x,
int z)
Decorates a given chunk.
|
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 Identifier ID
protected net.daporkchop.lib.noise.NoiseSource selector
protected double randomFactor
protected double min
protected double max
protected Decorator[] below
protected Decorator[] above
protected Decorator[] in
protected NoiseGenerator selectorNoise
protected void init0(long levelSeed,
long localSeed,
StandardGenerator generator)
init0 in class AbstractGenerationPasspublic void decorate(net.daporkchop.lib.random.PRandom random,
IChunk 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 decoratepublic Identifier getId()
Copyright © 2020. All rights reserved.