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:
ValueCompleter
,ValueParser
,ValueUsage
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
ValueParameter.Simple<T>
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default java.lang.String
usage(@NonNull java.lang.String key)
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 Detail
-
usage
default java.lang.String usage(@NonNull java.lang.String key)
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
-
-