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:
ValueCompleter,ValueParser,ValueUsage
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceValueParameter.Simple<T>
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default java.lang.Stringusage(@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:ValueUsageGets the usage string for the parameter.- Specified by:
usagein interfaceValueUsage- Parameters:
key- TheStringthat defines the parameter key- Returns:
- The usage
-
-