Record Class GenerationDescriptor.Noise
java.lang.Object
java.lang.Record
fr.fidorial.world.generation.GenerationDescriptor.Noise
- Record Components:
settings- the noise settings keybiomeSourcePreset- the biome source preset key
- All Implemented Interfaces:
GenerationDescriptor
- Enclosing interface:
GenerationDescriptor
public static record GenerationDescriptor.Noise(Key settings, Key biomeSourcePreset)
extends Record
implements GenerationDescriptor
A noise-based world.
- Since:
- 0.1.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface GenerationDescriptor
GenerationDescriptor.Flat, GenerationDescriptor.Noise, GenerationDescriptor.Unknown -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebiomeSourcePresetrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.settings()Returns the value of thesettingsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Noise
Creates an instance of aNoiserecord class.- Parameters:
settings- the value for thesettingsrecord componentbiomeSourcePreset- the value for thebiomeSourcePresetrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
settings
-
biomeSourcePreset
Returns the value of thebiomeSourcePresetrecord component.- Returns:
- the value of the
biomeSourcePresetrecord component
-