public class DistanceSelectionPopulator extends AbstractGenerationPass implements Populator
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 |
maxSq |
protected double |
min |
protected double |
minSq |
EMPTY_ARRAY| Constructor and Description |
|---|
DistanceSelectionPopulator() |
| 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 double minSq
protected double maxSq
protected Populator[] below
protected Populator[] above
protected Populator[] in
protected double min
protected double max
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.