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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfinish()Stops executing any currently runningGoals and allows other goals to be selected for execution.voidCallsGoalSelector.finish()and removes theGoalfrom the list of possible goals to execute.voidReplaces the execution of any runningGoals with the specified goal.voidselectAdditional(Goal... goals) Adds the providedGoals to the execution list.
-
Constructor Details
-
SimpleGoalSelector
public SimpleGoalSelector()
-
-
Method Details
-
finish
public void finish()Description copied from interface:GoalSelectorStops executing any currently runningGoals and allows other goals to be selected for execution.- Specified by:
finishin interfaceGoalSelector
-
finishAndRemove
public void finishAndRemove()Description copied from interface:GoalSelectorCallsGoalSelector.finish()and removes theGoalfrom the list of possible goals to execute.- Specified by:
finishAndRemovein interfaceGoalSelector
-
select
Description copied from interface:GoalSelectorReplaces the execution of any runningGoals with the specified goal.- Specified by:
selectin interfaceGoalSelector- Parameters:
goal- The new goal for execution
-
selectAdditional
Description copied from interface:GoalSelectorAdds the providedGoals to the execution list. These goals will be executed along with any previously running goals.- Specified by:
selectAdditionalin interfaceGoalSelector- Parameters:
goals- The additional goals
-