Class NPCKnockbackEvent

All Implemented Interfaces:
Cancellable

public class NPCKnockbackEvent extends NPCEvent implements Cancellable
  • Constructor Details

    • NPCKnockbackEvent

      public NPCKnockbackEvent(NPC npc, double impulse, double dx, double dz)
  • Method Details

    • getHandlers

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

      public Vector getKnockbackVector()
    • 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
    • setKnockbackVector

      public void setKnockbackVector(Vector vector)
    • setStrength

      public void setStrength(double strength)
    • getHandlerList

      public static HandlerList getHandlerList()