Class PathValidationContext

java.lang.Object
de.metaphoriker.pathetic.api.pathing.filter.PathValidationContext

public final class PathValidationContext extends Object
PathValidationContext is a data container used during the pathfinding process to provide relevant contextual information needed for evaluating path validity.
  • Constructor Details

  • Method Details

    • getPosition

      public PathPosition getPosition()
      The current position being evaluated in the pathfinding process. This represents the position that is being validated by the filter to determine if it can be part of a valid path.
    • getParent

      public PathPosition getParent()
      The parent position of the current position. This is the previous node from which the current position was reached. It is used to trace the path and ensure logical continuity between nodes.
    • getAbsoluteStart

      public PathPosition getAbsoluteStart()
      The absolute start position of the pathfinding process. This represents the original starting point of the path and remains constant throughout the algorithm, providing a stable reference.
    • getAbsoluteTarget

      public PathPosition getAbsoluteTarget()
      The absolute target position of the pathfinding process. This is the final goal or destination that the pathfinding algorithm is trying to reach. Like the start, it remains constant and provides a clear end-point for the path.
    • getNavigationPointProvider

      public NavigationPointProvider getNavigationPointProvider()
      The NavigationPointProvider provides access to world data, such as positional information, in the context of the pathfinding process.
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object