Class NPCPushEvent

All Implemented Interfaces:

public class NPCPushEvent extends NPCEvent implements Cancellable
  • Constructor Details

    • NPCPushEvent

      public NPCPushEvent(NPC npc, Vector vector, Entity pushedBy)
  • Method Details

    • getCollisionVector

      public Vector getCollisionVector()
      Return the collision Vector being applied to the NPC.
      The collision vector
    • getHandlers

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

      public Entity getPushedBy()
    • 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()