Record Class LineAnnotationData
java.lang.Object
java.lang.Record
fr.ghostrider584.axiom.annotation.data.LineAnnotationData
- All Implemented Interfaces:
AnnotationData
public record LineAnnotationData(net.minestom.server.coordinate.Point startQuantized, float lineWidth, int colour, byte[] offsets)
extends Record
implements AnnotationData
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minestom.server.network.NetworkBuffer.Type<LineAnnotationData> -
Constructor Summary
ConstructorsConstructorDescriptionLineAnnotationData(net.minestom.server.coordinate.Point startQuantized, float lineWidth, int colour, byte[] offsets) Creates an instance of aLineAnnotationDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcolour()Returns the value of thecolourrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.floatReturns the value of thelineWidthrecord component.byte[]offsets()Returns the value of theoffsetsrecord component.net.minestom.server.coordinate.PointReturns the value of thestartQuantizedrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface AnnotationData
withPosition, withRotation
-
Field Details
-
TYPE
-
-
Constructor Details
-
LineAnnotationData
public LineAnnotationData(net.minestom.server.coordinate.Point startQuantized, float lineWidth, int colour, byte[] offsets) Creates an instance of aLineAnnotationDatarecord class.- Parameters:
startQuantized- the value for thestartQuantizedrecord componentlineWidth- the value for thelineWidthrecord componentcolour- the value for thecolourrecord componentoffsets- the value for theoffsetsrecord 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. -
startQuantized
public net.minestom.server.coordinate.Point startQuantized()Returns the value of thestartQuantizedrecord component.- Returns:
- the value of the
startQuantizedrecord component
-
lineWidth
public float lineWidth()Returns the value of thelineWidthrecord component.- Returns:
- the value of the
lineWidthrecord component
-
colour
public int colour()Returns the value of thecolourrecord component.- Returns:
- the value of the
colourrecord component
-
offsets
public byte[] offsets()Returns the value of theoffsetsrecord component.- Returns:
- the value of the
offsetsrecord component
-