Class NpcEvent

java.lang.Object
org.bukkit.event.Event
lol.pyr.znpcsplus.api.event.util.NpcEvent
Direct Known Subclasses:
CancellableNpcEvent

public abstract class NpcEvent extends org.bukkit.event.Event
Base class for all NPC events
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.bukkit.event.Event

    org.bukkit.event.Event.Result
  • Constructor Summary

    Constructors
    Constructor
    Description
    NpcEvent(org.bukkit.entity.Player player, NpcEntry entry)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the NPC entry involved in the event
    Returns the NPC involved in the event
    org.bukkit.entity.Player
    Returns the player involved in the event

    Methods inherited from class org.bukkit.event.Event

    getEventName, getHandlers, isAsynchronous

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • NpcEvent

      public NpcEvent(org.bukkit.entity.Player player, NpcEntry entry)
      Parameters:
      player - The player involved in the event
      entry - The NPC entry involved in the event
  • Method Details

    • getPlayer

      public org.bukkit.entity.Player getPlayer()
      Returns the player involved in the event
      Returns:
      The player involved in the event
    • getEntry

      public NpcEntry getEntry()
      Returns the NPC entry involved in the event
      Returns:
      The NPC entry involved in the event
    • getNpc

      public Npc getNpc()
      Returns the NPC involved in the event
      Returns:
      The NPC involved in the event