public abstract class AbstractTreePopulator extends ChancePopulator
ChancePopulator.ColumnPopulator.SkipRegistrationAsFinisher| Modifier and Type | Field and Description |
|---|---|
protected IntRange |
height |
protected BlockFilter |
on |
protected BlockFilter |
replace |
chanceEMPTY_ARRAY| Constructor and Description |
|---|
AbstractTreePopulator() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
init0(long levelSeed,
long localSeed,
StandardGenerator generator) |
protected abstract 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, waitfinish, getIdinitprotected BlockFilter replace
protected BlockFilter on
protected IntRange height
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 populateprotected abstract void placeTree(net.daporkchop.lib.random.PRandom random,
ChunkManager level,
int x,
int y,
int z)
Copyright © 2020. All rights reserved.