Interface GoalEvent.Add
- All Superinterfaces:
Cancellable
,Event
,GoalEvent
- Enclosing interface:
GoalEvent
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.spongepowered.api.event.entity.ai.goal.GoalEvent
GoalEvent.Add, GoalEvent.Remove
-
Method Summary
Modifier and TypeMethodDescriptionint
Gets the original priority thatGoalEvent.task()
will be assigned to.void
setPriority
(int priority) Sets the priority the task will be assigned to.Methods inherited from interface org.spongepowered.api.event.Cancellable
isCancelled, setCancelled
-
Method Details
-
originalPriority
int originalPriority()Gets the original priority thatGoalEvent.task()
will be assigned to. SeeGoalEvent.priority()
.- Returns:
- The original priority
-
setPriority
void setPriority(int priority) Sets the priority the task will be assigned to. SeeGoalEvent.priority()
.- Parameters:
priority
- The new priority
-