Package net.citizensnpcs.api.ai
Interface GoalSelector
- All Known Implementing Classes:
SimpleGoalController.SimpleGoalSelector
public interface GoalSelector
-
Method Summary
Modifier and TypeMethodDescriptionvoid
finish()
Stops executing any currently runningGoal
s and allows other goals to be selected for execution.void
void
Replaces the execution of any runningGoal
s with the specified goal.void
selectAdditional
(Goal... goals) Adds the providedGoal
s to the execution list.
-
Method Details
-
finish
void finish()Stops executing any currently runningGoal
s and allows other goals to be selected for execution. -
finishAndRemove
void finishAndRemove() -
select
Replaces the execution of any runningGoal
s with the specified goal.- Parameters:
goal
- The new goal for execution
-
selectAdditional
Adds the providedGoal
s to the execution list. These goals will be executed along with any previously running goals.- Parameters:
goals
- The additional goals
-