Record Class MarkerDataMessage.Region
java.lang.Object
java.lang.Record
fr.ghostrider584.axiom.network.packet.server.MarkerDataMessage.Region
- Enclosing class:
MarkerDataMessage
public static record MarkerDataMessage.Region(net.minestom.server.coordinate.Point min, net.minestom.server.coordinate.Point max, int lineArgb, float lineThickness, int faceArgb)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionRegion(net.minestom.server.coordinate.Point min, net.minestom.server.coordinate.Point max, int lineArgb, float lineThickness, int faceArgb) Creates an instance of aRegionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intfaceArgb()Returns the value of thefaceArgbrecord component.final inthashCode()Returns a hash code value for this object.intlineArgb()Returns the value of thelineArgbrecord component.floatReturns the value of thelineThicknessrecord component.net.minestom.server.coordinate.Pointmax()Returns the value of themaxrecord component.net.minestom.server.coordinate.Pointmin()Returns the value of theminrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Region
public Region(net.minestom.server.coordinate.Point min, net.minestom.server.coordinate.Point max, int lineArgb, float lineThickness, int faceArgb) Creates an instance of aRegionrecord class.- Parameters:
min- the value for theminrecord componentmax- the value for themaxrecord componentlineArgb- the value for thelineArgbrecord componentlineThickness- the value for thelineThicknessrecord componentfaceArgb- the value for thefaceArgbrecord 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 '=='. -
min
public net.minestom.server.coordinate.Point min()Returns the value of theminrecord component.- Returns:
- the value of the
minrecord component
-
max
public net.minestom.server.coordinate.Point max()Returns the value of themaxrecord component.- Returns:
- the value of the
maxrecord component
-
lineArgb
public int lineArgb()Returns the value of thelineArgbrecord component.- Returns:
- the value of the
lineArgbrecord component
-
lineThickness
public float lineThickness()Returns the value of thelineThicknessrecord component.- Returns:
- the value of the
lineThicknessrecord component
-
faceArgb
public int faceArgb()Returns the value of thefaceArgbrecord component.- Returns:
- the value of the
faceArgbrecord component
-