Package lol.pyr.znpcsplus.api.event
Class NpcInteractEvent
java.lang.Object
org.bukkit.event.Event
lol.pyr.znpcsplus.api.event.util.NpcEvent
lol.pyr.znpcsplus.api.event.util.CancellableNpcEvent
lol.pyr.znpcsplus.api.event.NpcInteractEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
Event called when an NPC is interacted with by 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
ConstructorsConstructorDescriptionNpcInteractEvent
(org.bukkit.entity.Player player, NpcEntry entry, InteractionType clickType) -
Method Summary
Modifier and TypeMethodDescriptionReturns the type of interaction.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 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
-
NpcInteractEvent
- Parameters:
player
- The player involved in the evententry
- The NPC entry involved in the eventclickType
- The type of interaction. SeeInteractionType
-
-
Method Details
-
getHandlers
public org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlers
in classorg.bukkit.event.Event
-
getClickType
Returns the type of interaction. SeeInteractionType
- Returns:
- The type of interaction
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList()
-