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