Interface ParameterSettings
- All Superinterfaces:
DataSerializable
Interface for additional customization of command arguments.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ParameterSettings.Builderbuilder()booleancontainsIn(CommandContext context) getKey()<T> Optional<T>getParameterValue(@NonNull Class<T> object, CommandContext context) Object[]getPath()intbooleanbooleanstatic ParameterSettingsof(Parameter.Value<?> value, boolean optional, boolean optionalforConsole, Object... localeTextPath) static ParameterSettingsof(Parameter.Value<?> value, boolean optionalforConsole, Object... localeTextPath) Methods inherited from interface org.spongepowered.api.data.persistence.DataSerializable
contentVersion, toContainer
-
Method Details
-
builder
-
of
static ParameterSettings of(Parameter.Value<?> value, boolean optionalforConsole, Object... localeTextPath) -
of
static ParameterSettings of(Parameter.Value<?> value, boolean optional, boolean optionalforConsole, Object... localeTextPath) -
containsIn
-
getKey
String getKey() -
getParameterUnknownType
Parameter.Value<?> getParameterUnknownType() -
getParameterValue
-
isOptional
boolean isOptional() -
isOptionalForConsole
boolean isOptionalForConsole() -
getPath
Object[] getPath() -
getPosition
int getPosition()
-