Class WeatherTypeFlag
java.lang.Object
com.sk89q.worldguard.protection.flags.Flag<com.sk89q.worldedit.world.weather.WeatherType>
com.sk89q.worldguard.protection.flags.WeatherTypeFlag
@Deprecated
public class WeatherTypeFlag
extends Flag<com.sk89q.worldedit.world.weather.WeatherType>
Deprecated.
Stores an weather type.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
WeatherTypeFlag
(String name) Deprecated.protected
WeatherTypeFlag
(String name, RegionGroup defaultGroup) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionmarshal
(com.sk89q.worldedit.world.weather.WeatherType o) Deprecated.Convert the value stored for this flag into a type that can be serialized into YAML.com.sk89q.worldedit.world.weather.WeatherType
parseInput
(FlagContext context) Deprecated.Parse a given input to coerce it to a type compatible with the flag.com.sk89q.worldedit.world.weather.WeatherType
Deprecated.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
-
WeatherTypeFlag
Deprecated. -
WeatherTypeFlag
Deprecated.
-
-
Method Details
-
parseInput
public com.sk89q.worldedit.world.weather.WeatherType parseInput(FlagContext context) throws InvalidFlagFormat Deprecated.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.world.weather.WeatherType>
- Parameters:
context
- theFlagContext
- Returns:
- The coerced type
- Throws:
InvalidFlagFormat
- Raised if the input is invalid
-
unmarshal
Deprecated.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
Deprecated.Description copied from class:Flag
Convert the value stored for this flag into a type that can be serialized into YAML.
-
RegistryFlag<com.sk89q.worldedit.world.weather.WeatherType>
, will be removed in WorldGuard 8