Class CommaSeparatedValuesConverter<T>

java.lang.Object
com.sk89q.worldedit.command.argument.CommaSeparatedValuesConverter<T>
All Implemented Interfaces:
org.enginehub.piston.converter.ArgumentConverter<T>, org.enginehub.piston.converter.Converter<T>, org.enginehub.piston.converter.SuggestionProvider

public class CommaSeparatedValuesConverter<T> extends Object implements org.enginehub.piston.converter.ArgumentConverter<T>
  • Method Details

    • wrap

      public static <T> CommaSeparatedValuesConverter<T> wrap(org.enginehub.piston.converter.ArgumentConverter<T> delegate)
    • wrapAndLimit

      public static <T> CommaSeparatedValuesConverter<T> wrapAndLimit(org.enginehub.piston.converter.ArgumentConverter<T> delegate, int maximum)
    • describeAcceptableArguments

      public com.sk89q.worldedit.util.formatting.text.Component describeAcceptableArguments()
      Specified by:
      describeAcceptableArguments in interface org.enginehub.piston.converter.ArgumentConverter<T>
    • getSuggestions

      public List<String> getSuggestions(String input, org.enginehub.piston.inject.InjectedValueAccess context)
      Specified by:
      getSuggestions in interface org.enginehub.piston.converter.ArgumentConverter<T>
      Specified by:
      getSuggestions in interface org.enginehub.piston.converter.SuggestionProvider
    • convert

      public org.enginehub.piston.converter.ConversionResult<T> convert(String argument, org.enginehub.piston.inject.InjectedValueAccess context)
      Specified by:
      convert in interface org.enginehub.piston.converter.Converter<T>