Record Class Path.DebugData

java.lang.Object
java.lang.Record
net.minecraft.world.level.pathfinder.Path.DebugData
Enclosing class:
Path

public static record Path.DebugData(Node[] openSet, Node[] closedSet, Set<Target> targetNodes) extends Record
  • Field Details

    • openSet

      private final Node[] openSet
      The field for the openSet record component.
    • closedSet

      private final Node[] closedSet
      The field for the closedSet record component.
    • targetNodes

      private final Set<Target> targetNodes
      The field for the targetNodes record component.
  • Constructor Details

    • DebugData

      public DebugData(Node[] openSet, Node[] closedSet, Set<Target> targetNodes)
      Creates an instance of a DebugData record class.
      Parameters:
      openSet - the value for the openSet record component
      closedSet - the value for the closedSet record component
      targetNodes - the value for the targetNodes record component
  • Method Details

    • write

      public void write(FriendlyByteBuf p_299578_)
    • read

      public static Path.DebugData read(FriendlyByteBuf p_299429_)
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • openSet

      public Node[] openSet()
      Returns the value of the openSet record component.
      Returns:
      the value of the openSet record component
    • closedSet

      public Node[] closedSet()
      Returns the value of the closedSet record component.
      Returns:
      the value of the closedSet record component
    • targetNodes

      public Set<Target> targetNodes()
      Returns the value of the targetNodes record component.
      Returns:
      the value of the targetNodes record component