Interface ValueParameter<T>
- Type Parameters:
T- The type of object that is returned from theValueParserupon successful parsing.
- All Superinterfaces:
DefaultedRegistryValue,ValueCompleter,ValueParser<T>,ValueUsage
- All Known Subinterfaces:
ResourceKeyedValueParameter<T>,ValueParameter.Simple<T>
public interface ValueParameter<T>
extends DefaultedRegistryValue, ValueCompleter, ValueParser<T>, ValueUsage
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface -
Method Summary
Methods inherited from interface org.spongepowered.api.registry.DefaultedRegistryValue
asDefaultedReference, findKey, keyMethods inherited from interface org.spongepowered.api.command.parameter.managed.ValueCompleter
completeMethods inherited from interface org.spongepowered.api.command.parameter.managed.ValueParser
clientCompletionType, parseValue
-
Method Details
-
usage
Description copied from interface:ValueUsageGets the usage string for the parameter.- Specified by:
usagein interfaceValueUsage- Parameters:
key- TheStringthat defines the parameter key- Returns:
- The usage
-