Class WrappedPathfinder

java.lang.Object
me.gamercoder215.mobchip.ai.goal.WrappedPathfinder

public final class WrappedPathfinder extends Object
Represents a Pathfinder with a Priority
  • Constructor Details

    • WrappedPathfinder

      public WrappedPathfinder(@Nullable @Nullable Pathfinder p, int priority)
      Creates a WrappedPathfinder.
      Parameters:
      p - Pathfinder to use
      priority - Priority of pathfinder. Lower is better. Priority < 0 is nonstandard.
  • Method Details

    • getPriority

      public int getPriority()
      Gets the priority of the pathfinder.
      Returns:
      Priority of this WrappedPathfinder
    • getPathfinder

      @Nullable public @Nullable Pathfinder getPathfinder()
      Gets the pathfinder of this WrappedPathfinder.
      Returns:
      Pathfinder added, may be null