Interface GoalEvent.Add
-
- All Superinterfaces:
Cancellable
,Event
,GoalEvent
- Enclosing interface:
- GoalEvent
public static interface GoalEvent.Add extends GoalEvent
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.spongepowered.api.event.entity.ai.goal.GoalEvent
GoalEvent.Add, GoalEvent.Remove
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
originalPriority()
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 Detail
-
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
-
-