Record Class GeneratorImpl.GenSection
java.lang.Object
java.lang.Record
net.minestom.server.instance.generator.GeneratorImpl.GenSection
- Enclosing class:
GeneratorImpl
-
Constructor Summary
ConstructorDescriptionGenSection
(Palette blocks, Palette biomes) GenSection
(Palette blocks, Palette biomes, it.unimi.dsi.fastutil.ints.Int2ObjectMap<Block> specials) Creates an instance of aGenSection
record class. -
Method Summary
Modifier and TypeMethodDescriptionbiomes()
Returns the value of thebiomes
record component.blocks()
Returns the value of theblocks
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.it.unimi.dsi.fastutil.ints.Int2ObjectMap
<Block> specials()
Returns the value of thespecials
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
GenSection
-
GenSection
public GenSection() -
GenSection
public GenSection(Palette blocks, Palette biomes, it.unimi.dsi.fastutil.ints.Int2ObjectMap<Block> specials) Creates an instance of aGenSection
record class.- Parameters:
blocks
- the value for theblocks
record componentbiomes
- the value for thebiomes
record componentspecials
- the value for thespecials
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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)
. -
blocks
Returns the value of theblocks
record component.- Returns:
- the value of the
blocks
record component
-
biomes
Returns the value of thebiomes
record component.- Returns:
- the value of the
biomes
record component
-
specials
Returns the value of thespecials
record component.- Returns:
- the value of the
specials
record component
-