Package org.mcmonkey.sentinel.events
Class SentinelChaseNewTargetEvent
java.lang.Object
org.bukkit.event.Event
net.citizensnpcs.api.event.CitizensEvent
net.citizensnpcs.api.event.NPCEvent
org.mcmonkey.sentinel.events.SentinelChaseNewTargetEvent
- All Implemented Interfaces:
- org.bukkit.event.Cancellable
public class SentinelChaseNewTargetEvent
extends net.citizensnpcs.api.event.NPCEvent
implements org.bukkit.event.Cancellable
Event fired when a Sentinel NPC is setting its current chase target to something new.
- 
Nested Class SummaryNested classes/interfaces inherited from class org.bukkit.event.Eventorg.bukkit.event.Event.Result
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionSentinelChaseNewTargetEvent(net.citizensnpcs.api.npc.NPC npc, org.bukkit.entity.LivingEntity target) Constructs the chase-new-target event.
- 
Method SummaryModifier and TypeMethodDescriptionstatic org.bukkit.event.HandlerListReturns the handler list for use with Bukkit.org.bukkit.event.HandlerListReturns the handler list for use with Bukkit.booleanReturns whether the event is cancelled.voidsetCancelled(boolean b) Sets whether the event is cancelled.Methods inherited from class net.citizensnpcs.api.event.NPCEventgetNPCMethods inherited from class org.bukkit.event.EventgetEventName, isAsynchronous
- 
Field Details- 
newTargetpublic org.bukkit.entity.LivingEntity newTargetThe new chase target. Can be modified if desired. Prefer "setCancelled" if you just want to cancel the change.
- 
cancelledpublic boolean cancelledWhether the event is cancelled.
 
- 
- 
Constructor Details- 
SentinelChaseNewTargetEventpublic SentinelChaseNewTargetEvent(net.citizensnpcs.api.npc.NPC npc, org.bukkit.entity.LivingEntity target) Constructs the chase-new-target event.
 
- 
- 
Method Details- 
getHandlerspublic org.bukkit.event.HandlerList getHandlers()Returns the handler list for use with Bukkit.- Specified by:
- getHandlersin class- org.bukkit.event.Event
 
- 
getHandlerListpublic static org.bukkit.event.HandlerList getHandlerList()Returns the handler list for use with Bukkit.
- 
isCancelledpublic boolean isCancelled()Returns whether the event is cancelled.- Specified by:
- isCancelledin interface- org.bukkit.event.Cancellable
 
- 
setCancelledpublic void setCancelled(boolean b) Sets whether the event is cancelled.- Specified by:
- setCancelledin interface- org.bukkit.event.Cancellable
 
 
-