Record Class DebugPathInfo.Path
java.lang.Object
java.lang.Record
net.minestom.server.network.debug.info.DebugPathInfo.Path
- Enclosing class:
DebugPathInfo
public static record DebugPathInfo.Path(boolean reached, int nextNodeIndex, Point target, List<DebugPathInfo.Node> nodes, DebugPathInfo.Data data)
extends Record
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPath(boolean reached, int nextNodeIndex, Point target, List<DebugPathInfo.Node> nodes, DebugPathInfo.Data data) Creates an instance of aPathrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondata()Returns the value of thedatarecord 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.target()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
SERIALIZER
-
-
Constructor Details
-
Path
public Path(boolean reached, int nextNodeIndex, Point target, List<DebugPathInfo.Node> nodes, DebugPathInfo.Data data) 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 componentdata- the value for thedatarecord 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. -
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
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
-
data
Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord component
-