Class GoalController<T extends Entity>
java.lang.Object
me.arcademadness.omni_dungeon.controllers.AbstractController<T>
me.arcademadness.omni_dungeon.controllers.GoalController<T>
- Type Parameters:
T- the type of mob that will use this controller
- All Implemented Interfaces:
Controller
- Direct Known Subclasses:
BeeController,MobController
Provides ControlIntents based on
Goals rather than hard coded logic.-
Field Summary
Fields inherited from class me.arcademadness.omni_dungeon.controllers.AbstractController
entity -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidRetrieves the current control intent, if one is available.<G extends Goal<?>>
boolean<G extends Goal<?>>
voidremoveGoal(Class<G> goalClass) voidremoveGoal(Goal<T> goal)
-
Constructor Details
-
GoalController
public GoalController()
-
-
Method Details
-
addGoal
-
getIntent
Description copied from interface:ControllerRetrieves the current control intent, if one is available.The returned
Optionalmay be empty if there is no intent to process at the current moment.- Returns:
- an
Optionalcontaining the currentControlIntent, or empty if no intent is present
-
hasGoal
-
removeGoal
-
removeGoal
-