Class ClientCompletionTypes
- java.lang.Object
-
- org.spongepowered.api.command.parameter.managed.clientcompletion.ClientCompletionTypes
-
public final class ClientCompletionTypes extends java.lang.ObjectSupportedClientCompletionTypes.
-
-
Field Summary
Fields Modifier and Type Field Description static DefaultedRegistryReference<ClientCompletionType>DECIMAL_NUMBERIndicates to the client that theValueParserwill parse a decimal number.static DefaultedRegistryReference<ClientCompletionType>NONEHides this element from the client - useful for if theValueParserdoes not parse any part of the string.static DefaultedRegistryReference<ClientCompletionType>RESOURCE_KEYIndicates to the client that theValueParseris aResourceKey.static DefaultedRegistryReference<ClientCompletionType>SNBTIndicates to the client that theValueParserwill parse SNBT (the string format for NBT).static DefaultedRegistryReference<ClientCompletionType>STRINGIndicates to the client that theValueParseris a standard string.static DefaultedRegistryReference<ClientCompletionType>WHOLE_NUMBERIndicates to the client that theValueParseraccepts 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 theValueParserwill parse a decimal number.
-
SNBT
public static final DefaultedRegistryReference<ClientCompletionType> SNBT
Indicates to the client that theValueParserwill 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 theValueParserdoes not parse any part of the string.
-
RESOURCE_KEY
public static final DefaultedRegistryReference<ClientCompletionType> RESOURCE_KEY
Indicates to the client that theValueParseris aResourceKey.
-
STRING
public static final DefaultedRegistryReference<ClientCompletionType> STRING
Indicates to the client that theValueParseris 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 theValueParseraccepts a whole number.
-
-
Method Detail
-
registry
public static Registry<ClientCompletionType> registry()
-
-