- 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 Summary
org.enginehub.piston.converter.ConversionResult<V>
convert(String argument,
org.enginehub.piston.inject.InjectedValueAccess injectedValueAccess)
com.sk89q.worldedit.util.formatting.text.Component
static void
register(org.enginehub.piston.CommandManager commandManager)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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