| Modifier and Type | Field and Description |
|---|---|
static int |
CACHE_X |
static int |
CACHE_Y |
static int |
CACHE_Z |
static GeneratorFactory |
FACTORY |
static Identifier |
ID |
static int |
SAMPLES_X |
static int |
SAMPLES_Y |
static int |
SAMPLES_Z |
static double |
SCALE_X |
static double |
SCALE_Y |
static double |
SCALE_Z |
static int |
STEP_X |
static int |
STEP_Y |
static int |
STEP_Z |
| Constructor and Description |
|---|
StandardGenerator() |
| Modifier and Type | Method and Description |
|---|---|
void |
finish(net.daporkchop.lib.random.PRandom random,
ChunkManager level,
int chunkX,
int chunkZ)
Finishes a given chunk.
|
void |
generate(net.daporkchop.lib.random.PRandom random,
IChunk chunk,
int chunkX,
int chunkZ)
Generates a given chunk.
|
void |
populate(net.daporkchop.lib.random.PRandom random,
ChunkManager level,
int chunkX,
int chunkZ)
Populates a given chunk.
|
public static final Identifier ID
public static final GeneratorFactory FACTORY
public static final int STEP_X
public static final int STEP_Y
public static final int STEP_Z
public static final int SAMPLES_X
public static final int SAMPLES_Y
public static final int SAMPLES_Z
public static final int CACHE_X
public static final int CACHE_Y
public static final int CACHE_Z
public static final double SCALE_X
public static final double SCALE_Y
public static final double SCALE_Z
public void generate(net.daporkchop.lib.random.PRandom random,
IChunk chunk,
int chunkX,
int chunkZ)
Generatorpublic void populate(net.daporkchop.lib.random.PRandom random,
ChunkManager level,
int chunkX,
int chunkZ)
Generatorpopulate in interface Generatorrandom - 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 populatedchunkX - the chunk's X coordinatechunkZ - the chunk's Z coordinatepublic void finish(net.daporkchop.lib.random.PRandom random,
ChunkManager level,
int chunkX,
int chunkZ)
GeneratorThis is identical in every respect to population, except it requires that the chunk and all of its neighbors have been populated rather than generated. This phase is intended for things like placing a layer of snow over cold biomes, where overlapping blocks from populated neighbors can cause inconsistent/unexpected results.
finish in interface Generatorrandom - 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 populatedchunkX - the chunk's X coordinatechunkZ - the chunk's Z coordinateCopyright © 2020. All rights reserved.