Class LocationFlag
java.lang.Object
com.sk89q.worldguard.protection.flags.Flag<com.sk89q.worldedit.util.Location>
com.sk89q.worldguard.protection.flags.LocationFlag
-
Constructor Summary
ConstructorsConstructorDescriptionLocationFlag
(String name) LocationFlag
(String name, RegionGroup defaultGroup) -
Method Summary
Modifier and TypeMethodDescriptionmarshal
(com.sk89q.worldedit.util.Location o) Convert the value stored for this flag into a type that can be serialized into YAML.com.sk89q.worldedit.util.Location
parseInput
(FlagContext context) Parse a given input to coerce it to a type compatible with the flag.com.sk89q.worldedit.util.Location
Convert a raw type that was loaded (from a YAML file, for example) into the type that this flag uses.Methods inherited from class com.sk89q.worldguard.protection.flags.Flag
chooseValue, getDefault, getName, getRegionGroupFlag, hasConflictStrategy, implicitlySetWithMembership, isValidName, requiresSubject, toString, usesMembershipAsDefault
-
Constructor Details
-
LocationFlag
-
LocationFlag
-
-
Method Details
-
parseInput
Description copied from class:Flag
Parse a given input to coerce it to a type compatible with the flag.- Specified by:
parseInput
in classFlag<com.sk89q.worldedit.util.Location>
- Parameters:
context
- theFlagContext
- Returns:
- The coerced type
- Throws:
InvalidFlagFormat
- Raised if the input is invalid
-
unmarshal
Description copied from class:Flag
Convert a raw type that was loaded (from a YAML file, for example) into the type that this flag uses. -
marshal
Description copied from class:Flag
Convert the value stored for this flag into a type that can be serialized into YAML.
-