Class ClientCompletionTypes
- java.lang.Object
-
- org.spongepowered.api.command.parameter.managed.clientcompletion.ClientCompletionTypes
-
public final class ClientCompletionTypes extends java.lang.Object
SupportedClientCompletionTypes
.
-
-
Field Summary
Fields Modifier and Type Field Description static DefaultedRegistryReference<ClientCompletionType>
DECIMAL_NUMBER
Indicates to the client that theValueParser
will parse a decimal number.static DefaultedRegistryReference<ClientCompletionType>
NONE
Hides this element from the client - useful for if theValueParser
does not parse any part of the string.static DefaultedRegistryReference<ClientCompletionType>
RESOURCE_KEY
Indicates to the client that theValueParser
is aResourceKey
.static DefaultedRegistryReference<ClientCompletionType>
SNBT
Indicates to the client that theValueParser
will parse SNBT (the string format for NBT).static DefaultedRegistryReference<ClientCompletionType>
STRING
Indicates to the client that theValueParser
is a standard string.static DefaultedRegistryReference<ClientCompletionType>
WHOLE_NUMBER
Indicates to the client that theValueParser
accepts a whole number.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Registry<ClientCompletionType>
registry()
-
-
-
Field Detail
-
DECIMAL_NUMBER
public static final DefaultedRegistryReference<ClientCompletionType> DECIMAL_NUMBER
Indicates to the client that theValueParser
will parse a decimal number.
-
SNBT
public static final DefaultedRegistryReference<ClientCompletionType> SNBT
Indicates to the client that theValueParser
will parse SNBT (the string format for NBT).This format somewhat resembles JSON, but supports unquoted keys, and can unambiguously distinguish every NBT tag type.
-
NONE
public static final DefaultedRegistryReference<ClientCompletionType> NONE
Hides this element from the client - useful for if theValueParser
does not parse any part of the string.
-
RESOURCE_KEY
public static final DefaultedRegistryReference<ClientCompletionType> RESOURCE_KEY
Indicates to the client that theValueParser
is aResourceKey
.
-
STRING
public static final DefaultedRegistryReference<ClientCompletionType> STRING
Indicates to the client that theValueParser
is a standard string.This is the default behaviour for any custom
ValueParser
.
-
WHOLE_NUMBER
public static final DefaultedRegistryReference<ClientCompletionType> WHOLE_NUMBER
Indicates to the client that theValueParser
accepts a whole number.
-
-
Method Detail
-
registry
public static Registry<ClientCompletionType> registry()
-
-