public class HugeTreePopulator extends AbstractTreePopulator
ChancePopulator.ColumnPopulator.SkipRegistrationAsFinisher| Modifier and Type | Field and Description |
|---|---|
protected BlockSelector |
below |
protected boolean |
grid |
static Identifier |
ID |
protected WorldFeature[] |
types |
height, on, replacechanceEMPTY_ARRAY| Constructor and Description |
|---|
HugeTreePopulator() |
| Modifier and Type | Method and Description |
|---|---|
Identifier |
getId() |
protected void |
init0(long levelSeed,
long localSeed,
StandardGenerator generator) |
protected void |
placeTree(net.daporkchop.lib.random.PRandom random,
ChunkManager level,
int x,
int y,
int z) |
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 BlockSelector below
protected WorldFeature[] types
protected boolean grid
protected void init0(long levelSeed,
long localSeed,
StandardGenerator generator)
init0 in class AbstractTreePopulatorpublic void populate(net.daporkchop.lib.random.PRandom random,
ChunkManager level,
int blockX,
int blockZ)
Populatorpopulate in interface Populatorpopulate in class AbstractTreePopulatorrandom - 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 populateprotected void placeTree(net.daporkchop.lib.random.PRandom random,
ChunkManager level,
int x,
int y,
int z)
placeTree in class AbstractTreePopulatorpublic Identifier getId()
Copyright © 2020. All rights reserved.