Interface GoalEvent
- All Superinterfaces:
Cancellable
,Event
- All Known Subinterfaces:
GoalEvent.Add
,GoalEvent.Remove
- All Known Implementing Classes:
AbstractGoalEvent
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
static interface
-
Method Summary
Methods inherited from interface org.spongepowered.api.event.Cancellable
isCancelled, setCancelled
-
Method Details
-
agent
Agent agent()Gets theAgent
.- Returns:
- The agent
-
goal
GoalExecutor<? extends Agent> goal()Gets theGoalExecutor
the task will be assigned to.- Returns:
- The goal
-
task
Gets theGoal
to be assigned.- Returns:
- The task
-
priority
int priority()Gets the priority the task will be assigned to. Lower numbers mean higher priority.- Returns:
- The priority
-