Record Class GeneratorImpl.GenSection
java.lang.Object
java.lang.Record
net.minestom.server.instance.generator.GeneratorImpl.GenSection
- Enclosing class:
GeneratorImpl
-
Constructor Summary
ConstructorsConstructorDescriptionGenSection(Palette blocks, Palette biomes) GenSection(Palette blocks, Palette biomes, it.unimi.dsi.fastutil.ints.Int2ObjectMap<Block> specials) Creates an instance of aGenSectionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbiomes()Returns the value of thebiomesrecord component.blocks()Returns the value of theblocksrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.it.unimi.dsi.fastutil.ints.Int2ObjectMap<Block> specials()Returns the value of thespecialsrecord component.final StringtoString()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 aGenSectionrecord class.- Parameters:
blocks- the value for theblocksrecord componentbiomes- the value for thebiomesrecord componentspecials- the value for thespecialsrecord 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). -
blocks
Returns the value of theblocksrecord component.- Returns:
- the value of the
blocksrecord component
-
biomes
Returns the value of thebiomesrecord component.- Returns:
- the value of the
biomesrecord component
-
specials
Returns the value of thespecialsrecord component.- Returns:
- the value of the
specialsrecord component
-