Record Class BoxOutlineAnnotationData
java.lang.Object
java.lang.Record
fr.ghostrider584.axiom.annotation.data.BoxOutlineAnnotationData
- All Implemented Interfaces:
AnnotationData
public record BoxOutlineAnnotationData(net.minestom.server.coordinate.Point from, net.minestom.server.coordinate.Point to, int colour)
extends Record
implements AnnotationData
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minestom.server.network.NetworkBuffer.Type<BoxOutlineAnnotationData> -
Constructor Summary
ConstructorsConstructorDescriptionBoxOutlineAnnotationData(net.minestom.server.coordinate.Point from, net.minestom.server.coordinate.Point to, int colour) Creates an instance of aBoxOutlineAnnotationDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcolour()Returns the value of thecolourrecord component.final booleanIndicates whether some other object is "equal to" this one.net.minestom.server.coordinate.Pointfrom()Returns the value of thefromrecord component.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.Methods inherited from interface AnnotationData
withPosition, withRotation
-
Field Details
-
TYPE
-
-
Constructor Details
-
BoxOutlineAnnotationData
public BoxOutlineAnnotationData(net.minestom.server.coordinate.Point from, net.minestom.server.coordinate.Point to, int colour) Creates an instance of aBoxOutlineAnnotationDatarecord class.- Parameters:
from- the value for thefromrecord componentto- the value for thetorecord componentcolour- the value for thecolourrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
from
public net.minestom.server.coordinate.Point from()Returns the value of thefromrecord component.- Returns:
- the value of the
fromrecord component
-
to
public net.minestom.server.coordinate.Point to()Returns the value of thetorecord component.- Returns:
- the value of the
torecord component
-
colour
public int colour()Returns the value of thecolourrecord component.- Returns:
- the value of the
colourrecord component
-