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
,StatusMapper
,TargetNearbyEntityGoal
,TimerDecorator
,WanderGoal
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Goal
void
run
(GoalSelector selector) Updates the goal.boolean
shouldExecute
(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, wait
Methods inherited from interface net.citizensnpcs.api.ai.tree.Behavior
reset, run, shouldExecute
-
Constructor Details
-
BehaviorGoalAdapter
public BehaviorGoalAdapter()
-
-
Method Details
-
run
Description copied from interface:Goal
Updates the goal. -
shouldExecute
Description copied from interface:Goal
Returns whether the goal is ready to start.- Specified by:
shouldExecute
in interfaceGoal
- Parameters:
selector
- The selector to use during execution- Returns:
- Whether the goal can be started.
-
create
-