| Constructor and Description |
|---|
SetFlag(String name,
Flag<T> subFlag) |
SetFlag(String name,
RegionGroup defaultGroup,
Flag<T> subFlag) |
| Modifier and Type | Method and Description |
|---|---|
Flag<T> |
getType()
Get the flag that is stored in this flag.
|
Object |
marshal(Set<T> o)
Convert the value stored for this flag into a type that can be
serialized into YAML.
|
Set<T> |
parseInput(WorldGuardPlugin plugin,
org.bukkit.command.CommandSender sender,
String input)
Parse a given input to coerce it to a type compatible with the flag.
|
Set<T> |
unmarshal(Object o)
Convert a raw type that was loaded (from a YAML file, for example)
into the type that this flag uses.
|
chooseValue, getDefault, getName, getRegionGroupFlag, hasConflictStrategy, implicitlySetWithMembership, requiresSubject, toString, usesMembershipAsDefaultpublic SetFlag(String name, RegionGroup defaultGroup, Flag<T> subFlag)
public Flag<T> getType()
public Set<T> parseInput(WorldGuardPlugin plugin, org.bukkit.command.CommandSender sender, String input) throws InvalidFlagFormat
FlagparseInput in class Flag<Set<T>>plugin - The pluginsender - The senderinput - THe inputInvalidFlagFormat - Raised if the input is invalidpublic Set<T> unmarshal(Object o)
FlagCopyright © 2015. All Rights Reserved.