Record Class GenerationDescriptor.Flat
java.lang.Object
java.lang.Record
fr.fidorial.world.generation.GenerationDescriptor.Flat
- All Implemented Interfaces:
GenerationDescriptor
- Enclosing interface:
GenerationDescriptor
public static record GenerationDescriptor.Flat(Key floorBlock, int floorThickness, Key biome)
extends Record
implements GenerationDescriptor
-
Nested Class Summary
Nested classes/interfaces inherited from interface GenerationDescriptor
GenerationDescriptor.Flat, GenerationDescriptor.Noise, GenerationDescriptor.Unknown -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbiome()Returns the value of thebiomerecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefloorBlockrecord component.intReturns the value of thefloorThicknessrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Flat
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
floorBlock
Returns the value of thefloorBlockrecord component.- Returns:
- the value of the
floorBlockrecord component
-
floorThickness
public int floorThickness()Returns the value of thefloorThicknessrecord component.- Returns:
- the value of the
floorThicknessrecord component
-
biome
Returns the value of thebiomerecord component.- Returns:
- the value of the
biomerecord component
-