Record Class DebugPathInfo.Node
java.lang.Object
java.lang.Record
net.minestom.server.network.debug.info.DebugPathInfo.Node
- Enclosing class:
DebugPathInfo
public static record DebugPathInfo.Node(int x, int y, int z, float walkedDistance, float costMalus, boolean closed, DebugPathInfo.NodeType type, float f)
extends Record
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionNode(int x, int y, int z, float walkedDistance, float costMalus, boolean closed, DebugPathInfo.NodeType type, float f) Creates an instance of aNoderecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanclosed()Returns the value of theclosedrecord component.floatReturns the value of thecostMalusrecord component.final booleanIndicates whether some other object is "equal to" this one.floatf()Returns the value of thefrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.floatReturns the value of thewalkedDistancerecord component.intx()Returns the value of thexrecord component.inty()Returns the value of theyrecord component.intz()Returns the value of thezrecord component.
-
Field Details
-
SERIALIZER
-
-
Constructor Details
-
Node
public Node(int x, int y, int z, float walkedDistance, float costMalus, boolean closed, DebugPathInfo.NodeType type, float f) Creates an instance of aNoderecord class.- Parameters:
x- the value for thexrecord componenty- the value for theyrecord componentz- the value for thezrecord componentwalkedDistance- the value for thewalkedDistancerecord componentcostMalus- the value for thecostMalusrecord componentclosed- the value for theclosedrecord componenttype- the value for thetyperecord componentf- the value for thefrecord 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. -
x
public int x()Returns the value of thexrecord component.- Returns:
- the value of the
xrecord component
-
y
public int y()Returns the value of theyrecord component.- Returns:
- the value of the
yrecord component
-
z
public int z()Returns the value of thezrecord component.- Returns:
- the value of the
zrecord component
-
walkedDistance
public float walkedDistance()Returns the value of thewalkedDistancerecord component.- Returns:
- the value of the
walkedDistancerecord component
-
costMalus
public float costMalus()Returns the value of thecostMalusrecord component.- Returns:
- the value of the
costMalusrecord component
-
closed
public boolean closed()Returns the value of theclosedrecord component.- Returns:
- the value of the
closedrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
f
public float f()Returns the value of thefrecord component.- Returns:
- the value of the
frecord component
-