public class CocoaPopulator extends ChancePopulator
ChancePopulator.ColumnPopulator.SkipRegistrationAsFinisher| Modifier and Type | Field and Description |
|---|---|
boolean |
avoidDouble |
protected IntRange |
height |
static Identifier |
ID |
protected BlockFilter |
on |
protected BlockFilter |
replace |
chanceEMPTY_ARRAY| Constructor and Description |
|---|
CocoaPopulator() |
| 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 IntRange height
protected BlockFilter on
protected BlockFilter replace
public boolean avoidDouble
protected void init0(long levelSeed,
long localSeed,
StandardGenerator generator)
init0 in class ChancePopulatorpublic void populate(net.daporkchop.lib.random.PRandom random,
ChunkManager level,
int blockX,
int blockZ)
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.