Record Class EditBatch.BiomeChange
java.lang.Object
java.lang.Record
fr.ghostrider584.axiom.world.EditBatch.BiomeChange
- All Implemented Interfaces:
EditBatch.Change
- Enclosing class:
EditBatch
public static record EditBatch.BiomeChange(net.minestom.server.coordinate.BlockVec position, String biome)
extends Record
implements EditBatch.Change
Position is in block coordinates, aligned to the 4x4x4 biome cell.
-
Constructor Summary
ConstructorsConstructorDescriptionBiomeChange(net.minestom.server.coordinate.BlockVec position, String biome) Creates an instance of aBiomeChangerecord class. -
Method Summary
Modifier and TypeMethodDescriptionbiome()Returns the value of thebiomerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.minestom.server.coordinate.BlockVecposition()Returns the value of thepositionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BiomeChange
Creates an instance of aBiomeChangerecord class.- Parameters:
position- the value for thepositionrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
position
public net.minestom.server.coordinate.BlockVec position()Returns the value of thepositionrecord component.- Specified by:
positionin interfaceEditBatch.Change- Returns:
- the value of the
positionrecord component
-
biome
Returns the value of thebiomerecord component.- Returns:
- the value of the
biomerecord component
-