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

    Fields
    Modifier and Type
    Field
    Description
    boolean
    Whether the NPC is now in combat.
  • Constructor Summary

    Constructors
    Constructor
    Description
    SentinelCombatStateChangeEvent(net.citizensnpcs.api.npc.NPC npc, boolean isInCombat)
    Constructs the combat-state-change event.
  • Method Summary

    Modifier and Type
    Method
    Description
    static 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • isInCombat

      public boolean isInCombat
      Whether 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 class org.bukkit.event.Event
    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()
      Returns the handler list for use with Bukkit.