Record Class GenerationDescriptor.Flat
java.lang.Object
java.lang.Record
fr.fidorial.world.generation.GenerationDescriptor.Flat
- Record Components:
floorBlock- the block the floor is made offloorThickness- the number of floor layersbiome- the biome of the whole world
- All Implemented Interfaces:
GenerationDescriptor
- Enclosing interface:
GenerationDescriptor
public static record GenerationDescriptor.Flat(Key floorBlock, int floorThickness, Key biome)
extends Record
implements GenerationDescriptor
A superflat 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 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
Creates an instance of aFlatrecord class.- Parameters:
floorBlock- the value for thefloorBlockrecord componentfloorThickness- the value for thefloorThicknessrecord componentbiome- the value for thebiomerecord 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. 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
-