Package net.citizensnpcs.api.ai.tree
Class BehaviorGoalAdapter
java.lang.Object
net.citizensnpcs.api.ai.tree.BehaviorGoalAdapter
- Direct Known Subclasses:
BlockBreaker,Callback,Composite,Decorator,Empty,FollowPathGoal,ForwardingBehaviorGoalAdapter,IfElse,Loop,MoveToGoal,Precondition,RetryDecorator,StatusMapper,TargetNearbyEntityGoal,TimerDecorator,WanderGoal
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Goalvoidrun(GoalSelector selector) Updates the goal.booleanshouldExecute(GoalSelector selector) Returns whether the goal is ready to start.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.citizensnpcs.api.ai.tree.Behavior
reset, run, shouldExecute
-
Constructor Details
-
BehaviorGoalAdapter
public BehaviorGoalAdapter()
-
-
Method Details
-
run
Description copied from interface:GoalUpdates the goal. -
shouldExecute
Description copied from interface:GoalReturns whether the goal is ready to start.- Specified by:
shouldExecutein interfaceGoal- Parameters:
selector- The selector to use during execution- Returns:
- Whether the goal can be started.
-
create
-