Class NPCKnockbackEvent

All Implemented Interfaces:
Cancellable

public class NPCKnockbackEvent extends NPCEvent implements Cancellable
  • Constructor Details

    • NPCKnockbackEvent

      public NPCKnockbackEvent(NPC npc, double strength, Vector vector, Entity entity)
  • Method Details

    • getHandlers

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

      public Vector getKnockbackVector()
    • getKnockingBackEntity

      public Entity getKnockingBackEntity()
    • getStrength

      public double getStrength()
    • 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()