Record Class EditBatch
java.lang.Object
java.lang.Record
fr.ghostrider584.axiom.world.EditBatch
Immutable, compact decoded edits. A slice may contain skipped cells; no live world is retained.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordPosition is in block coordinates, aligned to the 4x4x4 biome cell.static final classstatic final recordstatic final classstatic interfacestatic final recordstatic interface -
Constructor Summary
ConstructorsConstructorDescriptionEditBatch(List<EditBatch.Segment> segments) Creates an instance of aEditBatchrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.segments()Returns the value of thesegmentsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EditBatch
Creates an instance of aEditBatchrecord class.- Parameters:
segments- the value for thesegmentsrecord 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). -
segments
Returns the value of thesegmentsrecord component.- Returns:
- the value of the
segmentsrecord component
-