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 SummaryConstructors
- 
Method SummaryModifier 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.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.citizensnpcs.api.ai.tree.Behaviorreset, run, shouldExecute
- 
Constructor Details- 
BehaviorGoalAdapterpublic BehaviorGoalAdapter()
 
- 
- 
Method Details- 
runDescription copied from interface:GoalUpdates the goal.
- 
shouldExecuteDescription copied from interface:GoalReturns whether the goal is ready to start.- Specified by:
- shouldExecutein interface- Goal
- Parameters:
- selector- The selector to use during execution
- Returns:
- Whether the goal can be started.
 
- 
create
 
-