Record Class DebugPathInfo.Path
java.lang.Object
java.lang.Record
org.geysermc.mcprotocollib.protocol.data.game.debug.DebugPathInfo.Path
- Enclosing class:
- DebugPathInfo
public static record DebugPathInfo.Path(boolean reached, int nextNodeIndex, org.cloudburstmc.math.vector.Vector3i target, List<DebugPathInfo.Node> nodes, DebugPathInfo.Path.DebugData debugData)
extends Record
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionPath(boolean reached, int nextNodeIndex, org.cloudburstmc.math.vector.Vector3i target, List<DebugPathInfo.Node> nodes, DebugPathInfo.Path.DebugData debugData) Creates an instance of aPathrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedebugDatarecord 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 thenextNodeIndexrecord component.nodes()Returns the value of thenodesrecord component.booleanreached()Returns the value of thereachedrecord component.org.cloudburstmc.math.vector.Vector3itarget()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Path
public Path(boolean reached, int nextNodeIndex, org.cloudburstmc.math.vector.Vector3i target, List<DebugPathInfo.Node> nodes, DebugPathInfo.Path.DebugData debugData) Creates an instance of aPathrecord class.- Parameters:
reached- the value for thereachedrecord componentnextNodeIndex- the value for thenextNodeIndexrecord componenttarget- the value for thetargetrecord componentnodes- the value for thenodesrecord componentdebugData- the value for thedebugDatarecord 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 '=='. -
reached
public boolean reached()Returns the value of thereachedrecord component.- Returns:
- the value of the
reachedrecord component
-
nextNodeIndex
public int nextNodeIndex()Returns the value of thenextNodeIndexrecord component.- Returns:
- the value of the
nextNodeIndexrecord component
-
target
public org.cloudburstmc.math.vector.Vector3i target()Returns the value of thetargetrecord component.- Returns:
- the value of the
targetrecord component
-
nodes
Returns the value of thenodesrecord component.- Returns:
- the value of the
nodesrecord component
-
debugData
Returns the value of thedebugDatarecord component.- Returns:
- the value of the
debugDatarecord component
-