Interface NoiseTerrain
public interface NoiseTerrain
The land a world grows from its noise settings and its seed: the shape of the ground and of the seas, the biomes,
the caves carved through them, then the ores, plants and trees laid over it.
Every query is answered by the terrain alone, without loading the chunks of a world, and always gives the same answer for the same seed. All methods are thread-safe.
- Since:
- 0.1.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbiomeAt(int x, int y, int z) Returns the biome at a block.Returns the biome table choosing the biomes from the climate, such asminecraft:overworld.doubleEvaluates one of the density functions of the world generation data at a block.intheight()Returns the number of block layers of the terrain, fromminY().intminY()Returns the lowest block height of the terrain.intseaLevel()Returns the height under which the empty spaces of the ground are flooded.longseed()Returns the seed every noise of this terrain derives from.settings()Returns the noise settings shaping this terrain, such asminecraft:overworldorminecraft:amplified.intsurfaceHeight(int x, int z) Gives the height of the ground of a column, once shaped and carved but before anything grows on it: the height just above its highest block that is neither air nor a liquid.
-
Method Details
-
seed
long seed()Returns the seed every noise of this terrain derives from.- Returns:
- the seed every noise of this terrain derives from
- Since:
- 0.1.0
-
settings
Key settings()Returns the noise settings shaping this terrain, such asminecraft:overworldorminecraft:amplified.- Returns:
- the noise settings shaping this terrain, such as
minecraft:overworldorminecraft:amplified - Since:
- 0.1.0
-
biomePreset
Key biomePreset()Returns the biome table choosing the biomes from the climate, such asminecraft:overworld.- Returns:
- the biome table choosing the biomes from the climate, such as
minecraft:overworld - Since:
- 0.1.0
-
minY
int minY()Returns the lowest block height of the terrain.- Returns:
- the lowest block height of the terrain
- Since:
- 0.1.0
-
height
-
seaLevel
int seaLevel()Returns the height under which the empty spaces of the ground are flooded.- Returns:
- the height under which the empty spaces of the ground are flooded
- Since:
- 0.1.0
-
biomeAt
Returns the biome at a block.- Parameters:
x- the block xy- the block yz- the block z- Returns:
- the biome at a block
- Since:
- 0.1.0
-
surfaceHeight
int surfaceHeight(int x, int z) Gives the height of the ground of a column, once shaped and carved but before anything grows on it: the height just above its highest block that is neither air nor a liquid.- Parameters:
x- the block xz- the block z- Returns:
- the height of the first block above the ground,
minY()for a column without ground - Since:
- 0.1.0
-
density
Evaluates one of the density functions of the world generation data at a block.- Parameters:
function- the key of the function, such asminecraft:overworld/continentsx- the block xy- the block yz- the block z- Returns:
- the value of the function
- Throws:
IllegalArgumentException- if no function has that key- Since:
- 0.1.0
-