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