| Constructor and Description |
|---|
DoubleFlag(String name) |
DoubleFlag(String name,
RegionGroup defaultGroup) |
| Modifier and Type | Method and Description |
|---|---|
Object |
marshal(Double o)
Convert the value stored for this flag into a type that can be
serialized into YAML.
|
Double |
parseInput(WorldGuardPlugin plugin,
org.bukkit.command.CommandSender sender,
String input)
Parse a given input to coerce it to a type compatible with the flag.
|
Double |
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 DoubleFlag(String name, RegionGroup defaultGroup)
public DoubleFlag(String name)
public Double parseInput(WorldGuardPlugin plugin, org.bukkit.command.CommandSender sender, String input) throws InvalidFlagFormat
FlagparseInput in class Flag<Double>plugin - The pluginsender - The senderinput - THe inputInvalidFlagFormat - Raised if the input is invalidpublic Double unmarshal(Object o)
FlagCopyright © 2015. All Rights Reserved.