Record Class MarkerManager.Marker.Region
java.lang.Object
java.lang.Record
fr.ghostrider584.axiom.marker.MarkerManager.Marker.Region
- Enclosing class:
MarkerManager.Marker
public static record MarkerManager.Marker.Region(net.minestom.server.coordinate.Vec min, net.minestom.server.coordinate.Vec max, int lineArgb, float lineThickness, int faceArgb)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionRegion(net.minestom.server.coordinate.Vec min, net.minestom.server.coordinate.Vec 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.Vecmax()Returns the value of themaxrecord component.net.minestom.server.coordinate.Vecmin()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.Vec min, net.minestom.server.coordinate.Vec 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
-
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. -
min
public net.minestom.server.coordinate.Vec min()Returns the value of theminrecord component.- Returns:
- the value of the
minrecord component
-
max
public net.minestom.server.coordinate.Vec 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
-