Class FlagApplyEvent

java.lang.Object
org.bukkit.event.Event
studio.magemonkey.fabled.api.event.FlagApplyEvent
All Implemented Interfaces:
org.bukkit.event.Cancellable

public class FlagApplyEvent extends org.bukkit.event.Event implements org.bukkit.event.Cancellable
Event called when a flag is applied to an entity
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.bukkit.event.Event

    org.bukkit.event.Event.Result
  • Constructor Summary

    Constructors
    Constructor
    Description
    FlagApplyEvent(org.bukkit.entity.LivingEntity entity, String flag, int ticks)
    Constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    org.bukkit.entity.LivingEntity
    Retrieves the entity that the flag is being applied to
    Retrieves the flag that is to be applied
    static org.bukkit.event.HandlerList
     
    org.bukkit.event.HandlerList
     
    int
    Retrieves the number of ticks the flag is to be applied for
    boolean
    Checks whether the event is cancelled
    void
    setCancelled(boolean cancelled)
    Sets whether the event is cancelled

    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
  • Constructor Details

    • FlagApplyEvent

      public FlagApplyEvent(org.bukkit.entity.LivingEntity entity, String flag, int ticks)
      Constructor
      Parameters:
      entity - the entity the flag was on
      flag - the flag that is to be applied
      ticks - the ticks the flag is to be applied for
  • Method Details

    • getEntity

      public org.bukkit.entity.LivingEntity getEntity()
      Retrieves the entity that the flag is being applied to
      Returns:
      the entity having the flag applied to
    • getFlag

      public String getFlag()
      Retrieves the flag that is to be applied
      Returns:
      the flag being applied
    • getTicks

      public int getTicks()
      Retrieves the number of ticks the flag is to be applied for
      Returns:
      the number of ticks
    • isCancelled

      public boolean isCancelled()
      Checks whether the event is cancelled
      Specified by:
      isCancelled in interface org.bukkit.event.Cancellable
      Returns:
      true if cancelled, false otherwise
    • setCancelled

      public void setCancelled(boolean cancelled)
      Sets whether the event is cancelled
      Specified by:
      setCancelled in interface org.bukkit.event.Cancellable
      Parameters:
      cancelled - true if cancelled, false otherwise
    • 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