Record Class RotateAnnotation
java.lang.Object
java.lang.Record
fr.ghostrider584.axiom.annotation.type.RotateAnnotation
- All Implemented Interfaces:
AnnotationUpdateAction
public record RotateAnnotation(UUID uuid, org.joml.Quaternionfc to)
extends Record
implements AnnotationUpdateAction
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minestom.server.network.NetworkBuffer.Type<RotateAnnotation> Fields inherited from interface fr.ghostrider584.axiom.annotation.type.AnnotationUpdateAction
LIST_TYPE -
Constructor Summary
ConstructorsConstructorDescriptionRotateAnnotation(UUID uuid, org.joml.Quaternionfc to) Creates an instance of aRotateAnnotationrecord 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.org.joml.Quaternionfcto()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
-
RotateAnnotation
Creates an instance of aRotateAnnotationrecord class.- Parameters:
uuid- the value for theuuidrecord componentto- the value for thetorecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 org.joml.Quaternionfc to()Returns the value of thetorecord component.- Returns:
- the value of the
torecord component
-