Record Class MoveAnnotation
java.lang.Object
java.lang.Record
fr.ghostrider584.axiom.annotation.type.MoveAnnotation
- All Implemented Interfaces:
AnnotationUpdateAction
public record MoveAnnotation(UUID uuid, net.minestom.server.coordinate.Point to)
extends Record
implements AnnotationUpdateAction
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minestom.server.network.NetworkBuffer.Type<MoveAnnotation> Fields inherited from interface AnnotationUpdateAction
LIST_TYPE -
Constructor Summary
ConstructorsConstructorDescriptionMoveAnnotation(UUID uuid, net.minestom.server.coordinate.Point to) Creates an instance of aMoveAnnotationrecord 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.net.minestom.server.coordinate.Pointto()Returns the value of thetorecord component.final StringtoString()Returns a string representation of this record class.uuid()Returns the value of theuuidrecord component.
-
Field Details
-
TYPE
-
-
Constructor Details
-
MoveAnnotation
Creates an instance of aMoveAnnotationrecord class.- Parameters:
uuid- the value for theuuidrecord componentto- the value for thetorecord 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). -
uuid
Returns the value of theuuidrecord component.- Returns:
- the value of the
uuidrecord component
-
to
public net.minestom.server.coordinate.Point to()Returns the value of thetorecord component.- Returns:
- the value of the
torecord component
-