Interface GoalEvent
- All Superinterfaces:
Cancellable,Event
- All Known Subinterfaces:
GoalEvent.Add,GoalEvent.Remove
- All Known Implementing Classes:
AbstractGoalEvent
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic 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 theGoalExecutorthe task will be assigned to.- Returns:
- The goal
-
task
Gets theGoalto 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
-