Package net.orbyfied.j8.command.argument
Class ArgumentTypes
java.lang.Object
net.orbyfied.j8.command.argument.ArgumentTypes
Standard, 'system' parameter types that
can be applied to Java and common values
as a whole. This includes things like
integers, floats, strings, vectors, etc.
Also contains methods for creating variable
type lists and maps.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interfacestatic final classClass for safely resolving system types. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ArgumentType<Boolean>static final ArgumentType<Byte>static final ArgumentType<Character>static final ArgumentType<Class>static final ArgumentType<Double>static final ArgumentType<Path>PathParses a path from a string.static final ArgumentType<Float>static final ArgumentType<net.orbyfied.j8.registry.Identifier>IdentifierUtilizesSTRINGfor parsing the initial text.static final ArgumentType<Integer>static final Stringstatic final GenericArgumentType<List>A list of any other parameter type (generic).static final ArgumentType<Long>static final ArgumentType<Short>static final ArgumentType<String>StringEither parses the string until it is met with a space, or if the string starts with a", it parses until the end of the string.static final Stringstatic final ArgumentType<ArgumentType>static final ArgumentType<TypeIdentifier>static final ArgumentTypes.SystemTypeResolverThe singleton type resolver.static final ArgumentType<UUID> -
Method Summary
Modifier and TypeMethodDescriptionstatic <E extends Enum<?>>
ArgumentType<E>static <T> ArgumentType<T>withSuggester(ArgumentType<T> type, ArgumentTypes.CompleterFunc func)
-
Field Details
-
typeResolver
The singleton type resolver. -
KEY_PROVIDER_OPTION
- See Also:
-
SUGGESTER_OPTION
- See Also:
-
BOOLEAN
-
BYTE
-
SHORT
-
INT
-
LONG
-
FLOAT
-
DOUBLE
-
STRING
StringEither parses the string until it is met with a space, or if the string starts with a", it parses until the end of the string. (the closing quote) -
CHAR
-
IDENTIFIER
IdentifierUtilizesSTRINGfor parsing the initial text. -
FILE_PATH
PathParses a path from a string. UtilizesSTRINGfor reading actual data and then parses it usingPath.of(String, String...) -
LIST
A list of any other parameter type (generic). Notation:[elem1, elem2, ...] -
TYPE_IDENTIFIER
-
TYPE
-
UUID
-
CLASS
-
-
Method Details
-
ofEnum
-
withSuggester
public static <T> ArgumentType<T> withSuggester(ArgumentType<T> type, ArgumentTypes.CompleterFunc func)
-