Class EntityTargetNPCEvent

All Implemented Interfaces:
Cancellable

public class EntityTargetNPCEvent extends NPCEvent implements Cancellable
  • Constructor Details

  • Method Details

    • getEntity

      public Entity getEntity()
      Returns the Entity involved in this event
      Returns:
      Entity who is involved in this event
    • getHandlers

      public HandlerList getHandlers()
      Specified by:
      getHandlers in class Event
    • getReason

      public EntityTargetEvent.TargetReason getReason()
      Returns the reason for the targeting
      Returns:
      The reason
    • isCancelled

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

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

      public static HandlerList getHandlerList()