Class ExtremaMaskParser
java.lang.Object
com.sk89q.worldedit.internal.registry.InputParser<E>
com.fastasyncworldedit.core.extension.factory.parser.RichParser<Mask>
com.fastasyncworldedit.core.extension.factory.parser.mask.ExtremaMaskParser
- All Implemented Interfaces:
AliasedParser
-
Field Summary
Fields inherited from class com.sk89q.worldedit.internal.registry.InputParser
worldEdit
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetSuggestions
(String argumentInput, int index) Returns a stream of suggestions for the argument at the given index.protected Mask
parseFromInput
(String[] arguments, ParserContext context) Parses the already split arguments.Methods inherited from class com.fastasyncworldedit.core.extension.factory.parser.RichParser
extractArguments, getMatchedAliases, getPrefix, getSuggestions, parseFromInput
-
Constructor Details
-
ExtremaMaskParser
-
-
Method Details
-
getSuggestions
Description copied from class:RichParser
Returns a stream of suggestions for the argument at the given index.- Specified by:
getSuggestions
in classRichParser<Mask>
- Parameters:
argumentInput
- the already provided input for the argument at the given index.index
- the index of the argument to get suggestions for.- Returns:
- a stream of suggestions matching the given input for the argument at the given index.
-
parseFromInput
protected Mask parseFromInput(@Nonnull String[] arguments, ParserContext context) throws InputParseException Description copied from class:RichParser
Parses the already split arguments.- Specified by:
parseFromInput
in classRichParser<Mask>
- Parameters:
arguments
- the array of arguments that were split (can be empty).context
- the context of this parsing process.- Returns:
- the resulting parsed type.
- Throws:
InputParseException
- if the input couldn't be parsed correctly.
-