Record Class ImageAnnotationData
java.lang.Object
java.lang.Record
fr.ghostrider584.axiom.annotation.data.ImageAnnotationData
- All Implemented Interfaces:
AnnotationData
public record ImageAnnotationData(String imageUrl, net.minestom.server.coordinate.Point position, 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, net.minestom.server.coordinate.Point position, 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.net.minestom.server.coordinate.Pointposition()Returns the value of thepositionrecord component.rotation()Returns the value of therotationrecord component.final StringtoString()Returns a string representation of this record class.floatwidth()Returns the value of thewidthrecord component.withPosition(net.minestom.server.coordinate.Point position) withRotation(Quaternionf rotation)
-
Field Details
-
TYPE
-
-
Constructor Details
-
ImageAnnotationData
public ImageAnnotationData(String imageUrl, net.minestom.server.coordinate.Point position, 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
-
withPosition
- Specified by:
withPositionin interfaceAnnotationData
-
withRotation
- Specified by:
withRotationin interfaceAnnotationData
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
imageUrl
Returns the value of theimageUrlrecord component.- Returns:
- the value of the
imageUrlrecord component
-
position
public net.minestom.server.coordinate.Point position()Returns the value of thepositionrecord component.- Returns:
- the value of the
positionrecord component
-
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
-