Interface GoalEvent.Add

All Superinterfaces:
Cancellable, Event, GoalEvent
Enclosing interface:
GoalEvent

public static interface GoalEvent.Add extends GoalEvent
Fired when an Goal is added to an Agent's GoalExecutor.
  • Method Details

    • originalPriority

      int originalPriority()
      Gets the original priority that GoalEvent.task() will be assigned to. See GoalEvent.priority().
      Returns:
      The original priority
    • setPriority

      void setPriority(int priority)
      Sets the priority the task will be assigned to. See GoalEvent.priority().
      Parameters:
      priority - The new priority