Record Class FreehandOutlineAnnotationData
java.lang.Object
java.lang.Record
fr.ghostrider584.axiom.annotation.data.FreehandOutlineAnnotationData
- All Implemented Interfaces:
AnnotationData
public record FreehandOutlineAnnotationData(net.minestom.server.coordinate.Point start, int offsetCount, int colour, byte[] offsets)
extends Record
implements AnnotationData
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minestom.server.network.NetworkBuffer.Type<FreehandOutlineAnnotationData> -
Constructor Summary
ConstructorsConstructorDescriptionFreehandOutlineAnnotationData(net.minestom.server.coordinate.Point start, int offsetCount, int colour, byte[] offsets) Creates an instance of aFreehandOutlineAnnotationDatarecord 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.intReturns the value of theoffsetCountrecord component.byte[]offsets()Returns the value of theoffsetsrecord component.net.minestom.server.coordinate.Pointstart()Returns the value of thestartrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface fr.ghostrider584.axiom.annotation.data.AnnotationData
withPosition, withRotation
-
Field Details
-
TYPE
public static final net.minestom.server.network.NetworkBuffer.Type<FreehandOutlineAnnotationData> TYPE
-
-
Constructor Details
-
FreehandOutlineAnnotationData
public FreehandOutlineAnnotationData(net.minestom.server.coordinate.Point start, int offsetCount, int colour, byte[] offsets) Creates an instance of aFreehandOutlineAnnotationDatarecord class.- Parameters:
start- the value for thestartrecord componentoffsetCount- the value for theoffsetCountrecord componentcolour- the value for thecolourrecord componentoffsets- the value for theoffsetsrecord component
-
-
Method Details
-
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 '=='. -
start
public net.minestom.server.coordinate.Point start()Returns the value of thestartrecord component.- Returns:
- the value of the
startrecord component
-
offsetCount
public int offsetCount()Returns the value of theoffsetCountrecord component.- Returns:
- the value of the
offsetCountrecord 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
-