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