Package org.mcmonkey.sentinel.events
Class SentinelChaseEndEvent
java.lang.Object
org.bukkit.event.Event
net.citizensnpcs.api.event.CitizensEvent
net.citizensnpcs.api.event.NPCEvent
org.mcmonkey.sentinel.events.SentinelChaseEndEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
public class SentinelChaseEndEvent
extends net.citizensnpcs.api.event.NPCEvent
implements org.bukkit.event.Cancellable
Event fired when a Sentinel NPC is setting its current chase target to none.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Field Summary
-
Constructor Summary
ConstructorDescriptionSentinelChaseEndEvent
(net.citizensnpcs.api.npc.NPC npc) Constructs the chase-end event. -
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.event.HandlerList
Returns the handler list for use with Bukkit.org.bukkit.event.HandlerList
Returns the handler list for use with Bukkit.boolean
Returns whether the event is cancelled.void
setCancelled
(boolean b) Sets whether the event is cancelled.Methods inherited from class net.citizensnpcs.api.event.NPCEvent
getNPC
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Field Details
-
cancelled
public boolean cancelledWhether the event is cancelled.
-
-
Constructor Details
-
SentinelChaseEndEvent
public SentinelChaseEndEvent(net.citizensnpcs.api.npc.NPC npc) Constructs the chase-end event.
-
-
Method Details
-
getHandlers
public org.bukkit.event.HandlerList getHandlers()Returns the handler list for use with Bukkit.- Specified by:
getHandlers
in classorg.bukkit.event.Event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList()Returns the handler list for use with Bukkit. -
isCancelled
public boolean isCancelled()Returns whether the event is cancelled.- Specified by:
isCancelled
in interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean b) Sets whether the event is cancelled.- Specified by:
setCancelled
in interfaceorg.bukkit.event.Cancellable
-