Interface NoiseTerrains
public interface NoiseTerrains
Builds and finds the noise terrains the server generates its worlds with.
The server provides it as a service. The overworld is generated from the
minecraft:overworld settings and biome preset unless a plugin replaces its WorldGenerator.
- Since:
- 0.1.0
-
Method Summary
Modifier and TypeMethodDescriptionReturns the keys of the biome presets a terrain can be built from: the parameter lists of the climates, such asminecraft:overworld, andminecraft:the_end, which picks the biomes of the End from its islands.Builds a terrain, to query it without generating any world.Gives a generator shaping the worlds it is given to from noise settings, to be passed toWorldManager.create(WorldSpec): each world is then generated from its own seed.Returns the terrain a world is generated from, empty for a world shaped by any other generator.settings()Returns the keys of the noise settings a terrain can be built from.
-
Method Details
-
settings
-
biomePresets
Returns the keys of the biome presets a terrain can be built from: the parameter lists of the climates, such asminecraft:overworld, andminecraft:the_end, which picks the biomes of the End from its islands.- Returns:
- the keys of the biome presets a terrain can be built from: the parameter lists of the climates, such
as
minecraft:overworld, andminecraft:the_end, which picks the biomes of the End from its islands - Since:
- 0.1.0
-
of
Returns the terrain a world is generated from, empty for a world shaped by any other generator.- Parameters:
world- the world- Returns:
- the terrain a world is generated from, empty for a world shaped by any other generator
- Since:
- 0.1.0
-
create
Builds a terrain, to query it without generating any world. Terrains built twice from the same arguments are shared.- Parameters:
settings- the noise settings, one ofsettings()biomePreset- the biome preset, one ofbiomePresets()seed- the seed- Returns:
- the terrain
- Throws:
IllegalArgumentException- if the settings or the preset are unknown- Since:
- 0.1.0
-
generator
Gives a generator shaping the worlds it is given to from noise settings, to be passed toWorldManager.create(WorldSpec): each world is then generated from its own seed. Registered as the defaultWorldGeneratorservice instead, it generates from the seed of the save.- Parameters:
settings- the noise settings, one ofsettings()biomePreset- the biome preset, one ofbiomePresets()- Returns:
- the generator
- Throws:
IllegalArgumentException- if the settings or the preset are unknown- Since:
- 0.1.0
-