Record Class EditBatch.BlockChange
java.lang.Object
java.lang.Record
fr.ghostrider584.axiom.world.EditBatch.BlockChange
- All Implemented Interfaces:
EditBatch.Change
- Enclosing class:
EditBatch
public static record EditBatch.BlockChange(net.minestom.server.coordinate.BlockVec position, net.minestom.server.instance.block.Block block)
extends Record
implements EditBatch.Change
-
Constructor Summary
ConstructorsConstructorDescriptionBlockChange(net.minestom.server.coordinate.BlockVec position, net.minestom.server.instance.block.Block block) Creates an instance of aBlockChangerecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minestom.server.instance.block.Blockblock()Returns the value of theblockrecord 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
-
BlockChange
public BlockChange(net.minestom.server.coordinate.BlockVec position, net.minestom.server.instance.block.Block block) Creates an instance of aBlockChangerecord class.- Parameters:
position- the value for thepositionrecord componentblock- the value for theblockrecord 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
-
block
public net.minestom.server.instance.block.Block block()Returns the value of theblockrecord component.- Returns:
- the value of the
blockrecord component
-