Class BlockTypeListFlag<F extends ListFlag<BlockTypeWrapper,F>>
java.lang.Object
com.plotsquared.core.plot.flag.PlotFlag<List<V>,F>
com.plotsquared.core.plot.flag.types.ListFlag<BlockTypeWrapper,F>
com.plotsquared.core.plot.flag.types.BlockTypeListFlag<F>
public abstract class BlockTypeListFlag<F extends ListFlag<BlockTypeWrapper,F>>
extends ListFlag<BlockTypeWrapper,F>
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
BlockTypeListFlag
(List<BlockTypeWrapper> blockTypeList, Caption description) -
Method Summary
Modifier and TypeMethodDescriptionAn example of a string that would parse into a valid flag value.Get the tab completable values associated with the flag type, or an empty collection if tab completion isn't supported.Parse a string into a flag, and throw an exception in the case that the string does not represent a valid flag value.Methods inherited from class com.plotsquared.core.plot.flag.PlotFlag
canEqual, createFlagInstance, equals, flagOf, getFlagCategory, getFlagDescription, getFlagName, getName, getValue, hashCode, isValuedPermission
-
Field Details
-
skipCategoryVerification
-
-
Constructor Details
-
Method Details
-
parse
Description copied from class:PlotFlag
Parse a string into a flag, and throw an exception in the case that the string does not represent a valid flag value. This instance won't change its state, but instead an instance holding the parsed flag value will be returned.- Specified by:
parse
in classPlotFlag<List<BlockTypeWrapper>,
F extends ListFlag<BlockTypeWrapper, F>> - Parameters:
input
- String to parse.- Returns:
- Parsed value, if valid.
- Throws:
FlagParseException
- If the value could not be parsed.
-
getExample
Description copied from class:PlotFlag
An example of a string that would parse into a valid flag value.- Specified by:
getExample
in classPlotFlag<List<BlockTypeWrapper>,
F extends ListFlag<BlockTypeWrapper, F>> - Returns:
- An example flag value.
-
getTabCompletions
Description copied from class:PlotFlag
Get the tab completable values associated with the flag type, or an empty collection if tab completion isn't supported.- Overrides:
getTabCompletions
in classPlotFlag<List<BlockTypeWrapper>,
F extends ListFlag<BlockTypeWrapper, F>> - Returns:
- Collection containing tab completable flag values
-