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
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
-
Method Summary
Modifier and TypeMethodDescriptiondefault ValueParameter
<T> bind
(RegistryHolder registryHolder) Creates a newValueCompleter
that is bound to a specificregistry holder
.default String
Gets the usage string for the parameter.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
-
bind
Description copied from interface:ValueCompleter
Creates a newValueCompleter
that is bound to a specificregistry holder
.- Specified by:
bind
in interfaceValueCompleter
- Specified by:
bind
in interfaceValueParser<T>
- Parameters:
registryHolder
- The owningregistry holder
.- Returns:
- The bound
ValueCompleter
.
-