Record Class Path.DebugData
java.lang.Object
java.lang.Record
net.minecraft.world.level.pathfinder.Path.DebugData
- Enclosing class:
Path
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionNode[]
Returns the value of theclosedSet
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Node[]
openSet()
Returns the value of theopenSet
record component.static Path.DebugData
read
(FriendlyByteBuf p_299429_) Returns the value of thetargetNodes
record component.final String
toString()
Returns a string representation of this record class.void
write
(FriendlyByteBuf p_299578_)
-
Field Details
-
openSet
The field for theopenSet
record component. -
closedSet
The field for theclosedSet
record component. -
targetNodes
The field for thetargetNodes
record component.
-
-
Constructor Details
-
DebugData
Creates an instance of aDebugData
record class.- Parameters:
openSet
- the value for theopenSet
record componentclosedSet
- the value for theclosedSet
record componenttargetNodes
- the value for thetargetNodes
record component
-
-
Method Details
-
write
-
read
-
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
openSet
Returns the value of theopenSet
record component.- Returns:
- the value of the
openSet
record component
-
closedSet
Returns the value of theclosedSet
record component.- Returns:
- the value of the
closedSet
record component
-
targetNodes
Returns the value of thetargetNodes
record component.- Returns:
- the value of the
targetNodes
record component
-