Interface ValueParameter<T>
- Type Parameters:
T
- The type of object that is returned from theValueParser
upon 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
Modifier and TypeInterfaceDescriptionstatic interface
-
Method Summary
Methods inherited from interface org.spongepowered.api.registry.DefaultedRegistryValue
asDefaultedReference, findKey, key
Methods inherited from interface org.spongepowered.api.command.parameter.managed.ValueCompleter
complete
Methods inherited from interface org.spongepowered.api.command.parameter.managed.ValueParser
clientCompletionType, parseValue
-
Method Details
-
usage
Description copied from interface:ValueUsage
Gets the usage string for the parameter.- Specified by:
usage
in interfaceValueUsage
- Parameters:
key
- TheString
that defines the parameter key- Returns:
- The usage
-