Package lol.pyr.znpcsplus.api.event.util
Class CancellableNpcEvent
java.lang.Object
org.bukkit.event.Event
lol.pyr.znpcsplus.api.event.util.NpcEvent
lol.pyr.znpcsplus.api.event.util.CancellableNpcEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
- Direct Known Subclasses:
NpcDespawnEvent
,NpcInteractEvent
,NpcSpawnEvent
Base class for all NPC events that can be cancelled
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.bukkit.event.Event
getEventName, getHandlers, isAsynchronous
-
Constructor Details
-
CancellableNpcEvent
- Parameters:
player
- The player involved in the evententry
- The NPC entry involved in the event
-
-
Method Details
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean cancel) - Specified by:
setCancelled
in interfaceorg.bukkit.event.Cancellable
-