Class PathfinderClearEvent

java.lang.Object
org.bukkit.event.Event
me.gamercoder215.mobchip.bukkit.events.pathfinder.PathfinderClearEvent

public class PathfinderClearEvent extends Event
Called when Pathfinders are cleared
  • Constructor Details

    • PathfinderClearEvent

      public PathfinderClearEvent(@NotNull @NotNull EntityAI ai, boolean target)
      Construct a PathfinderClearEvent.
      Parameters:
      ai - EntityAI involved
      target - true if AI is target, else false
  • Method Details

    • getHandlers

      public HandlerList getHandlers()
      Gets the Handlers of this PathfinderEvent.
      Specified by:
      getHandlers in class Event
      Returns:
      Handlers
    • getHandlerList

      public static HandlerList getHandlerList()
      Gets the Handlers of this PathfinderEvent.
      Returns:
      Handlers
    • getAI

      public EntityAI getAI()
      Gets the current EntityAI involved in this Event.
      Returns:
      EntityAI involved
    • isTarget

      public boolean isTarget()
      Whether this EntityAI is the Target AI.
      Returns:
      true if EntityAI is target, else false