Record Class LinesOutlineAnnotationData
java.lang.Object
java.lang.Record
fr.ghostrider584.axiom.annotation.data.LinesOutlineAnnotationData
- All Implemented Interfaces:
AnnotationData
public record LinesOutlineAnnotationData(long[] positions, int colour)
extends Record
implements AnnotationData
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minestom.server.network.NetworkBuffer.Type<LinesOutlineAnnotationData> -
Constructor Summary
ConstructorsConstructorDescriptionLinesOutlineAnnotationData(long[] positions, int colour) Creates an instance of aLinesOutlineAnnotationDatarecord 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.long[]Returns the value of thepositionsrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface AnnotationData
withPosition, withRotation
-
Field Details
-
TYPE
-
-
Constructor Details
-
LinesOutlineAnnotationData
public LinesOutlineAnnotationData(long[] positions, int colour) Creates an instance of aLinesOutlineAnnotationDatarecord class.- Parameters:
positions- the value for thepositionsrecord 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. -
positions
public long[] positions()Returns the value of thepositionsrecord component.- Returns:
- the value of the
positionsrecord component
-
colour
public int colour()Returns the value of thecolourrecord component.- Returns:
- the value of the
colourrecord component
-