Class RegistryConverter<V extends Keyed>

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

public final class RegistryConverter<V extends Keyed> extends Object implements org.enginehub.piston.converter.ArgumentConverter<V>
  • Method Details

    • register

      public static void register(org.enginehub.piston.CommandManager commandManager)
    • describeAcceptableArguments

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

      public org.enginehub.piston.converter.ConversionResult<V> convert(String argument, org.enginehub.piston.inject.InjectedValueAccess injectedValueAccess)
      Specified by:
      convert in interface org.enginehub.piston.converter.Converter<V extends Keyed>
    • getSuggestions

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