java.lang.Object
com.sk89q.worldedit.internal.registry.InputParser<E>
com.fastasyncworldedit.core.extension.factory.parser.RichParser<Pattern>
com.fastasyncworldedit.core.extension.factory.parser.pattern.SaturatePatternParser
All Implemented Interfaces:
AliasedParser

public class SaturatePatternParser extends RichParser<Pattern>
  • Constructor Details

    • SaturatePatternParser

      public SaturatePatternParser(WorldEdit worldEdit)
      Create a new rich parser with a defined prefix for the result, e.g. #simplex.
      Parameters:
      worldEdit - the worldedit instance.
  • Method Details

    • getSuggestions

      public Stream<String> getSuggestions(String argumentInput, int index)
      Description copied from class: RichParser
      Returns a stream of suggestions for the argument at the given index.
      Specified by:
      getSuggestions in class RichParser<Pattern>
      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

      public Pattern parseFromInput(@Nonnull String[] input, ParserContext context) throws InputParseException
      Description copied from class: RichParser
      Parses the already split arguments.
      Specified by:
      parseFromInput in class RichParser<Pattern>
      Parameters:
      input - 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.