Package net.citizensnpcs.api.ai
Class SimpleGoalController.SimpleGoalSelector
java.lang.Object
net.citizensnpcs.api.ai.SimpleGoalController.SimpleGoalSelector
- All Implemented Interfaces:
GoalSelector
- Enclosing class:
SimpleGoalController
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
finish()
Stops executing any currently runningGoal
s and allows other goals to be selected for execution.void
CallsGoalSelector.finish()
and removes theGoal
from the list of possible goals to execute.void
Replaces the execution of any runningGoal
s with the specified goal.void
selectAdditional
(Goal... goals) Adds the providedGoal
s to the execution list.
-
Constructor Details
-
SimpleGoalSelector
public SimpleGoalSelector()
-
-
Method Details
-
finish
public void finish()Description copied from interface:GoalSelector
Stops executing any currently runningGoal
s and allows other goals to be selected for execution.- Specified by:
finish
in interfaceGoalSelector
-
finishAndRemove
public void finishAndRemove()Description copied from interface:GoalSelector
CallsGoalSelector.finish()
and removes theGoal
from the list of possible goals to execute.- Specified by:
finishAndRemove
in interfaceGoalSelector
-
select
Description copied from interface:GoalSelector
Replaces the execution of any runningGoal
s with the specified goal.- Specified by:
select
in interfaceGoalSelector
- Parameters:
goal
- The new goal for execution
-
selectAdditional
Description copied from interface:GoalSelector
Adds the providedGoal
s to the execution list. These goals will be executed along with any previously running goals.- Specified by:
selectAdditional
in interfaceGoalSelector
- Parameters:
goals
- The additional goals
-