public class NoiseSelectionPopulator extends AbstractGenerationPass implements Populator
SurfaceDecorator, but switches between two different populators based on the output of a noise function.Populator.SkipRegistrationAsFinisher| Modifier and Type | Field and Description |
|---|---|
protected Populator[] |
above |
protected Populator[] |
below |
static Identifier |
ID |
protected Populator[] |
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 |
|---|
NoiseSelectionPopulator() |
| Modifier and Type | Method and Description |
|---|---|
Identifier |
getId() |
protected void |
init0(long levelSeed,
long localSeed,
StandardGenerator generator) |
void |
populate(net.daporkchop.lib.random.PRandom random,
ChunkManager level,
int blockX,
int blockZ)
Populates a given chunk.
|
init, setSeedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfinishinitpublic static final Identifier ID
protected net.daporkchop.lib.noise.NoiseSource selector
protected double randomFactor
protected double min
protected double max
protected Populator[] below
protected Populator[] above
protected Populator[] in
protected NoiseGenerator selectorNoise
protected void init0(long levelSeed,
long localSeed,
StandardGenerator generator)
init0 in class AbstractGenerationPasspublic 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 populatepublic Identifier getId()
Copyright © 2020. All rights reserved.