java.lang.Object
de.bsommerfeld.pathetic.api.wrapper.Depth

public class Depth extends Object
Represents the depth of a pathfinding node or element. This class provides methods to get and increment the depth value.
  • Method Details

    • of

      public static Depth of(int value)
      Creates a new Depth instance with the specified value.
      Parameters:
      value - The initial depth value.
      Returns:
      A new Depth instance.
    • increment

      public void increment()
      Increments the depth value by one.
    • getValue

      @Deprecated public int getValue()
      Deprecated.
      Returns the current depth value.
      Returns:
      The current depth value.
    • value

      public int value()
      Returns the current depth value.
      Returns:
      The current depth value.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object