Class PathfinderAddEvent

java.lang.Object
org.bukkit.event.Event
me.gamercoder215.mobchip.bukkit.events.pathfinder.PathfinderEvent
me.gamercoder215.mobchip.bukkit.events.pathfinder.PathfinderAddEvent
All Implemented Interfaces:
Cancellable

public class PathfinderAddEvent extends PathfinderEvent implements Cancellable
Called before a Pathfinder is added
  • Constructor Details

    • PathfinderAddEvent

      public PathfinderAddEvent(@NotNull @NotNull EntityAI ai, @NotNull @NotNull Pathfinder p, boolean target, int priority)
      Constructs a PathfinderAddEvent.
      Parameters:
      ai - EntityAI used
      p - Pathfinder used
      target - Whether AI is Target AI
      priority - Priority of Pathfinder
  • Method Details

    • getPriority

      public int getPriority()
      Gets the priority that this Pathfinder will be added to.
      Returns:
      Priority added
    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface Cancellable
    • setCancelled

      public void setCancelled(boolean cancel)
      Specified by:
      setCancelled in interface Cancellable