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 interfaceGoalEvent.Addstatic interfaceGoalEvent.Remove
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Agentagent()Gets theAgent.GoalExecutor<? extends Agent>goal()Gets theGoalExecutorthe task will be assigned to.intpriority()Gets the priority the task will be assigned to.Goal<? extends Agent>task()Gets theGoalto be assigned.-
Methods inherited from interface org.spongepowered.api.event.Cancellable
isCancelled, setCancelled
-
-
-
-
Method Detail
-
goal
GoalExecutor<? extends Agent> goal()
Gets theGoalExecutorthe 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
-
-