Package org.mcmonkey.sentinel.events
Class SentinelCombatStateChangeEvent
java.lang.Object
org.bukkit.event.Event
net.citizensnpcs.api.event.CitizensEvent
net.citizensnpcs.api.event.NPCEvent
org.mcmonkey.sentinel.events.SentinelCombatStateChangeEvent
public class SentinelCombatStateChangeEvent
extends net.citizensnpcs.api.event.NPCEvent
Event fired when a Sentinel NPC starts or stops being in combat.
See also SentinelTrait#otherBehaviorPaused
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Field Summary
-
Constructor Summary
ConstructorDescriptionSentinelCombatStateChangeEvent
(net.citizensnpcs.api.npc.NPC npc, boolean isInCombat) Constructs the combat-state-change 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.Methods inherited from class net.citizensnpcs.api.event.NPCEvent
getNPC
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Field Details
-
isInCombat
public boolean isInCombatWhether the NPC is now in combat.
-
-
Constructor Details
-
SentinelCombatStateChangeEvent
public SentinelCombatStateChangeEvent(net.citizensnpcs.api.npc.NPC npc, boolean isInCombat) Constructs the combat-state-change 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.
-