Class StandardGenerator
java.lang.Object
org.cloudburstmc.server.level.generator.standard.StandardGenerator
- All Implemented Interfaces:
Generator
Main class of the Cloudburst Standard Generator.
- Author:
- DaPorkchop_
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic intstatic intstatic intstatic GeneratorFactorystatic org.cloudburstmc.api.util.Identifierstatic intstatic intstatic intstatic doublestatic doublestatic doublestatic intstatic intstatic int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfinish(net.daporkchop.lib.random.PRandom random, org.cloudburstmc.api.level.ChunkManager level, int chunkX, int chunkZ)Finishes a given chunk.voidgenerate(net.daporkchop.lib.random.PRandom random, org.cloudburstmc.api.level.chunk.Chunk chunk, int chunkX, int chunkZ)Generates a given chunk.voidpopulate(net.daporkchop.lib.random.PRandom random, org.cloudburstmc.api.level.ChunkManager level, int chunkX, int chunkZ)Populates a given chunk.
-
Field Details
-
ID
public static final org.cloudburstmc.api.util.Identifier ID -
FACTORY
-
STEP_X
public static final int STEP_X- See Also:
- Constant Field Values
-
STEP_Y
public static final int STEP_Y- See Also:
- Constant Field Values
-
STEP_Z
public static final int STEP_Z- See Also:
- Constant Field Values
-
SAMPLES_X
public static final int SAMPLES_X- See Also:
- Constant Field Values
-
SAMPLES_Y
public static final int SAMPLES_Y- See Also:
- Constant Field Values
-
SAMPLES_Z
public static final int SAMPLES_Z- See Also:
- Constant Field Values
-
CACHE_X
public static final int CACHE_X- See Also:
- Constant Field Values
-
CACHE_Y
public static final int CACHE_Y- See Also:
- Constant Field Values
-
CACHE_Z
public static final int CACHE_Z- See Also:
- Constant Field Values
-
SCALE_X
public static final double SCALE_X- See Also:
- Constant Field Values
-
SCALE_Y
public static final double SCALE_Y- See Also:
- Constant Field Values
-
SCALE_Z
public static final double SCALE_Z- See Also:
- Constant Field Values
-
-
Constructor Details
-
StandardGenerator
public StandardGenerator()
-
-
Method Details
-
generate
public void generate(net.daporkchop.lib.random.PRandom random, org.cloudburstmc.api.level.chunk.Chunk chunk, int chunkX, int chunkZ)Description copied from interface:GeneratorGenerates a given chunk. -
populate
public void populate(net.daporkchop.lib.random.PRandom random, org.cloudburstmc.api.level.ChunkManager level, int chunkX, int chunkZ)Description copied from interface:GeneratorPopulates a given chunk.- Specified by:
populatein interfaceGenerator- Parameters:
random- an instance ofPRandomfor generating random numbers, initialized with a seed based on chunk's positionlevel- aChunkManagercontaining only a 3x3 square of generated chunks, centered around the chunk being populatedchunkX- the chunk's X coordinatechunkZ- the chunk's Z coordinate
-
finish
public void finish(net.daporkchop.lib.random.PRandom random, org.cloudburstmc.api.level.ChunkManager level, int chunkX, int chunkZ)Description copied from interface:GeneratorFinishes a given chunk.This 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.
- Specified by:
finishin interfaceGenerator- Parameters:
random- an instance ofPRandomfor generating random numbers, initialized with a seed based on chunk's positionlevel- aChunkManagercontaining only a 3x3 square of generated chunks, centered around the chunk being populatedchunkX- the chunk's X coordinatechunkZ- the chunk's Z coordinate
-