public class EntityTypeFlag extends Flag<com.sk89q.worldedit.world.entity.EntityType>
| Modifier | Constructor and Description |
|---|---|
protected |
EntityTypeFlag(java.lang.String name) |
protected |
EntityTypeFlag(java.lang.String name,
RegionGroup defaultGroup) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
marshal(com.sk89q.worldedit.world.entity.EntityType o)
Convert the value stored for this flag into a type that can be
serialized into YAML.
|
com.sk89q.worldedit.world.entity.EntityType |
parseInput(FlagContext context)
Parse a given input to coerce it to a type compatible with the flag.
|
com.sk89q.worldedit.world.entity.EntityType |
unmarshal(java.lang.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, isValidName, requiresSubject, toString, usesMembershipAsDefaultprotected EntityTypeFlag(java.lang.String name,
@Nullable
RegionGroup defaultGroup)
protected EntityTypeFlag(java.lang.String name)
public com.sk89q.worldedit.world.entity.EntityType parseInput(FlagContext context) throws InvalidFlagFormat
FlagparseInput in class Flag<com.sk89q.worldedit.world.entity.EntityType>context - the FlagContextInvalidFlagFormat - Raised if the input is invalidpublic com.sk89q.worldedit.world.entity.EntityType unmarshal(@Nullable
java.lang.Object o)
Flagpublic java.lang.Object marshal(com.sk89q.worldedit.world.entity.EntityType o)
Flag