Class NpcSpawnEvent

All Implemented Interfaces:
org.bukkit.event.Cancellable

public class NpcSpawnEvent extends CancellableNpcEvent implements org.bukkit.event.Cancellable
Event called when an NPC is spawned for a player Note: This event is async
  • Nested Class Summary

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

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

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

    Modifier and Type
    Method
    Description
    static org.bukkit.event.HandlerList
     
    org.bukkit.event.HandlerList
     

    Methods inherited from class lol.pyr.znpcsplus.api.event.util.CancellableNpcEvent

    isCancelled, setCancelled

    Methods inherited from class lol.pyr.znpcsplus.api.event.util.NpcEvent

    getEntry, getNpc, getPlayer

    Methods inherited from class org.bukkit.event.Event

    getEventName, isAsynchronous

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.bukkit.event.Cancellable

    isCancelled, setCancelled
  • Constructor Details

    • NpcSpawnEvent

      public NpcSpawnEvent(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

    • getHandlers

      public org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event
    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()