Record Class ImageAnnotationData
java.lang.Object
java.lang.Record
fr.ghostrider584.axiom.annotation.data.ImageAnnotationData
- All Implemented Interfaces:
AnnotationData
public record ImageAnnotationData(String imageUrl, org.joml.Vector3f position, org.joml.Quaternionf rotation, net.minestom.server.utils.Direction direction, float fallbackYaw, float width, float opacity, byte billboardMode)
extends Record
implements AnnotationData
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minestom.server.network.NetworkBuffer.Type<ImageAnnotationData> -
Constructor Summary
ConstructorsConstructorDescriptionImageAnnotationData(String imageUrl, org.joml.Vector3f position, org.joml.Quaternionf rotation, net.minestom.server.utils.Direction direction, float fallbackYaw, float width, float opacity, byte billboardMode) Creates an instance of aImageAnnotationDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionbyteReturns the value of thebillboardModerecord component.net.minestom.server.utils.DirectionReturns the value of thedirectionrecord component.final booleanIndicates whether some other object is "equal to" this one.floatReturns the value of thefallbackYawrecord component.final inthashCode()Returns a hash code value for this object.imageUrl()Returns the value of theimageUrlrecord component.floatopacity()Returns the value of theopacityrecord component.org.joml.Vector3fposition()Returns the value of thepositionrecord component.org.joml.Quaternionfrotation()Returns the value of therotationrecord component.voidsetPosition(org.joml.Vector3fc position) voidsetRotation(org.joml.Quaternionfc rotation) final StringtoString()Returns a string representation of this record class.floatwidth()Returns the value of thewidthrecord component.
-
Field Details
-
TYPE
-
-
Constructor Details
-
ImageAnnotationData
public ImageAnnotationData(String imageUrl, org.joml.Vector3f position, org.joml.Quaternionf rotation, net.minestom.server.utils.Direction direction, float fallbackYaw, float width, float opacity, byte billboardMode) Creates an instance of aImageAnnotationDatarecord class.- Parameters:
imageUrl- the value for theimageUrlrecord componentposition- the value for thepositionrecord componentrotation- the value for therotationrecord componentdirection- the value for thedirectionrecord componentfallbackYaw- the value for thefallbackYawrecord componentwidth- the value for thewidthrecord componentopacity- the value for theopacityrecord componentbillboardMode- the value for thebillboardModerecord component
-
-
Method Details
-
setPosition
public void setPosition(org.joml.Vector3fc position) - Specified by:
setPositionin interfaceAnnotationData
-
setRotation
public void setRotation(org.joml.Quaternionfc rotation) - Specified by:
setRotationin interfaceAnnotationData
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
imageUrl
Returns the value of theimageUrlrecord component.- Returns:
- the value of the
imageUrlrecord component
-
position
public org.joml.Vector3f position()Returns the value of thepositionrecord component.- Returns:
- the value of the
positionrecord component
-
rotation
public org.joml.Quaternionf rotation()Returns the value of therotationrecord component.- Returns:
- the value of the
rotationrecord component
-
direction
public net.minestom.server.utils.Direction direction()Returns the value of thedirectionrecord component.- Returns:
- the value of the
directionrecord component
-
fallbackYaw
public float fallbackYaw()Returns the value of thefallbackYawrecord component.- Returns:
- the value of the
fallbackYawrecord component
-
width
public float width()Returns the value of thewidthrecord component.- Returns:
- the value of the
widthrecord component
-
opacity
public float opacity()Returns the value of theopacityrecord component.- Returns:
- the value of the
opacityrecord component
-
billboardMode
public byte billboardMode()Returns the value of thebillboardModerecord component.- Returns:
- the value of the
billboardModerecord component
-