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
ConstructorDescriptionFlagContextCreateEvent
(com.sk89q.worldguard.protection.flags.FlagContext.FlagContextBuilder builder) -
Method Summary
Modifier and TypeMethodDescriptionboolean
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
-
Constructor Details
-
FlagContextCreateEvent
public FlagContextCreateEvent(com.sk89q.worldguard.protection.flags.FlagContext.FlagContextBuilder builder)
-
-
Method Details
-
addObject
Add an object to the flag context with the given key. Keys must be unique.- Parameters:
key
- a unique string to identify the objectvalue
- 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 classorg.bukkit.event.Event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList()
-