Class FlagExpireEvent

java.lang.Object
org.bukkit.event.Event
studio.magemonkey.fabled.api.event.FlagExpireEvent

public class FlagExpireEvent extends org.bukkit.event.Event
Event called when a flag expired on an entity
  • Constructor Details

    • FlagExpireEvent

      public FlagExpireEvent(org.bukkit.entity.LivingEntity entity, String flag, FlagExpireEvent.ExpireReason reason)
      Constructor
      Parameters:
      entity - the entity the flag was on
      flag - the flag that expired
      reason - the expiration reason
  • Method Details

    • getEntity

      public org.bukkit.entity.LivingEntity getEntity()
      Retrieves the entity that the flag was on
      Returns:
      the entity that the flag was on
    • getFlag

      public String getFlag()
      Retrieves the expired flag
      Returns:
      the flag that expired
    • getReason

      public FlagExpireEvent.ExpireReason getReason()
      Returns:
      reason for the flag expiring
    • getHandlers

      public org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event
      Returns:
      gets the handlers for the event
    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()
      Returns:
      gets the handlers for the event