Package me.gamercoder215.mobchip.ai.goal
Class WrappedPathfinder
java.lang.Object
me.gamercoder215.mobchip.ai.goal.WrappedPathfinder
Represents a Pathfinder with a Priority
-
Constructor Summary
ConstructorsConstructorDescriptionWrappedPathfinder
(@Nullable Pathfinder p, int priority) Creates a WrappedPathfinder. -
Method Summary
Modifier and TypeMethodDescriptionGets the pathfinder of this WrappedPathfinder.int
Gets the priority of the pathfinder.
-
Constructor Details
-
WrappedPathfinder
Creates a WrappedPathfinder.- Parameters:
p
- Pathfinder to usepriority
- 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
Gets the pathfinder of this WrappedPathfinder.- Returns:
- Pathfinder added, may be null
-