Class FlagContextCreateEvent

java.lang.Object
org.bukkit.event.Event
com.sk89q.worldguard.bukkit.protection.events.flags.FlagContextCreateEvent

public class FlagContextCreateEvent extends org.bukkit.event.Event
  • Nested Class Summary

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

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

    Constructors
    Constructor
    Description
    FlagContextCreateEvent(com.sk89q.worldguard.protection.flags.FlagContext.FlagContextBuilder builder)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    addObject(String key, Object value)
    Add an object to the flag context with the given key.
    static org.bukkit.event.HandlerList
     
    org.bukkit.event.HandlerList
     

    Methods inherited from class org.bukkit.event.Event

    callEvent, getEventName, isAsynchronous

    Methods inherited from class java.lang.Object

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

    • FlagContextCreateEvent

      public FlagContextCreateEvent(com.sk89q.worldguard.protection.flags.FlagContext.FlagContextBuilder builder)
  • Method Details

    • addObject

      public boolean addObject(String key, Object value)
      Add an object to the flag context with the given key. Keys must be unique.
      Parameters:
      key - a unique string to identify the object
      value - the object to store in the context
      Returns:
      true if added successfully, false if the key was already used
    • getHandlers

      public org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event
    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()