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 Type
    Method
    Description
    Returns the keys of the biome presets a terrain can be built from: the parameter lists of the climates, such as minecraft:overworld, and minecraft:the_end, which picks the biomes of the End from its islands.
    create(Key settings, Key biomePreset, long seed)
    Builds a terrain, to query it without generating any world.
    generator(Key settings, Key biomePreset)
    Gives a generator shaping the worlds it is given to from noise settings, to be passed to WorldManager.create(WorldSpec): each world is then generated from its own seed.
    of(World world)
    Returns the terrain a world is generated from, empty for a world shaped by any other generator.
    Returns the keys of the noise settings a terrain can be built from.
  • Method Details

    • settings

      Set<Key> settings()
      Returns the keys of the noise settings a terrain can be built from.
      Returns:
      the keys of the noise settings a terrain can be built from
      Since:
      0.1.0
    • biomePresets

      Set<Key> biomePresets()
      Returns the keys of the biome presets a terrain can be built from: the parameter lists of the climates, such as minecraft:overworld, and minecraft: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, and minecraft: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

      NoiseTerrain create(Key settings, Key biomePreset, long seed)
      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 of settings()
      biomePreset - the biome preset, one of biomePresets()
      seed - the seed
      Returns:
      the terrain
      Throws:
      IllegalArgumentException - if the settings or the preset are unknown
      Since:
      0.1.0
    • generator

      WorldGenerator generator(Key settings, Key biomePreset)
      Gives a generator shaping the worlds it is given to from noise settings, to be passed to WorldManager.create(WorldSpec): each world is then generated from its own seed. Registered as the default WorldGenerator service instead, it generates from the seed of the save.
      Parameters:
      settings - the noise settings, one of settings()
      biomePreset - the biome preset, one of biomePresets()
      Returns:
      the generator
      Throws:
      IllegalArgumentException - if the settings or the preset are unknown
      Since:
      0.1.0