Class NPCEvent

Direct Known Subclasses:
EntityTargetNPCEvent, NPCClickEvent, NPCCloneEvent, NPCCollisionEvent, NPCCombustEvent, NPCCommandDispatchEvent, NPCCreateEvent, NPCDamageEvent, NPCDeathEvent, NPCDespawnEvent, NPCEnderTeleportEvent, NPCLookCloseChangeTargetEvent, NPCNeedsRespawnEvent, NPCOpenDoorEvent, NPCOpenGateEvent, NPCPushEvent, NPCRemoveEvent, NPCSelectEvent, NPCSpawnEvent, NPCSpeechEvent, NPCTeleportEvent, NPCTraitCommandAttachEvent, NPCTraitCommandDetachEvent, NPCTraitEvent, NPCVehicleDamageEvent

public abstract class NPCEvent extends CitizensEvent
Represents an event thrown by an NPC.
  • Constructor Details

    • NPCEvent

      protected NPCEvent(NPC npc)
  • Method Details

    • getNPC

      public NPC getNPC()
      Get the npc involved in the event.
      Returns:
      the npc involved in the event