Interface GenerationDescriptor
- All Known Implementing Classes:
GenerationDescriptor.Flat, GenerationDescriptor.Noise, GenerationDescriptor.Unknown
public sealed interface GenerationDescriptor
permits GenerationDescriptor.Flat, GenerationDescriptor.Noise, GenerationDescriptor.Unknown
How a
WorldGenerator is described in level.dat, so vanilla tools can make sense of the world.- Since:
- 0.1.0
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordA superflat world.static final recordA noise-based world.static final recordA generator that describes nothing. -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic GenerationDescriptorReturns a descriptor of a superflat world.static GenerationDescriptorReturns a descriptor of a noise-based world.static GenerationDescriptorunknown()Returns a descriptor saying nothing about the generator.
-
Method Details
-
unknown
Returns a descriptor saying nothing about the generator.- Returns:
- a descriptor saying nothing about the generator
- Since:
- 0.1.0
-
flat
Returns a descriptor of a superflat world.- Parameters:
floorBlock- the block the floor is made offloorThickness- the number of floor layersbiome- the biome of the whole world- Returns:
- a descriptor of a superflat world
- Since:
- 0.1.0
-
noise
Returns a descriptor of a noise-based world.- Parameters:
settings- the noise settings key, for instanceminecraft:overworldbiomeSourcePreset- the biome source preset key- Returns:
- a descriptor of a noise-based world
- Since:
- 0.1.0
-