Package org.mcmonkey.sentinel.events
Class SentinelWantsToPathEvent
java.lang.Object
org.bukkit.event.Event
net.citizensnpcs.api.event.CitizensEvent
net.citizensnpcs.api.event.NPCEvent
org.mcmonkey.sentinel.events.SentinelWantsToPathEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
public class SentinelWantsToPathEvent
extends net.citizensnpcs.api.event.NPCEvent
implements org.bukkit.event.Cancellable
Event fired when a Sentinel NPC wants to path somewhere.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSentinelWantsToPathEvent(net.citizensnpcs.api.npc.NPC npc, org.bukkit.Location destination) Constructs the wants-to-path event. -
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.event.HandlerListReturns the handler list for use with Bukkit.org.bukkit.event.HandlerListReturns the handler list for use with Bukkit.booleanvoidsetCancelled(boolean cancelled) Methods inherited from class net.citizensnpcs.api.event.NPCEvent
getNPCMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Field Details
-
destination
public org.bukkit.Location destinationWhere the NPC is trying to go.
-
-
Constructor Details
-
SentinelWantsToPathEvent
public SentinelWantsToPathEvent(net.citizensnpcs.api.npc.NPC npc, org.bukkit.Location destination) Constructs the wants-to-path event.
-
-
Method Details
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean cancelled) - Specified by:
setCancelledin interfaceorg.bukkit.event.Cancellable
-
getHandlers
public org.bukkit.event.HandlerList getHandlers()Returns the handler list for use with Bukkit.- Specified by:
getHandlersin classorg.bukkit.event.Event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList()Returns the handler list for use with Bukkit.
-