Class NpcInteractEvent

All Implemented Interfaces:
org.bukkit.event.Cancellable

public class NpcInteractEvent extends CancellableNpcEvent implements org.bukkit.event.Cancellable
Event called when an NPC is interacted with by a player Note: This event is async
  • Constructor Details

    • NpcInteractEvent

      public NpcInteractEvent(org.bukkit.entity.Player player, NpcEntry entry, InteractionType clickType)
      Parameters:
      player - The player involved in the event
      entry - The NPC entry involved in the event
      clickType - The type of interaction. See InteractionType
  • Method Details

    • getHandlers

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

      public InteractionType getClickType()
      Returns the type of interaction. See InteractionType
      Returns:
      The type of interaction
    • getHandlerList

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