Modifier and Type | Field and Description |
---|---|
private static Collection<String> |
EXAMPLES |
private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType |
INVALID_COUNT_EXCEPTION |
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
INVALID_UNIT_EXCEPTION |
private static it.unimi.dsi.fastutil.objects.Object2IntMap<String> |
UNITS |
Constructor and Description |
---|
TimeArgumentType() |
Modifier and Type | Method and Description |
---|---|
Collection<String> |
getExamples() |
<S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> |
listSuggestions(com.mojang.brigadier.context.CommandContext<S> context,
com.mojang.brigadier.suggestion.SuggestionsBuilder builder) |
Integer |
parse(com.mojang.brigadier.StringReader stringReader) |
static TimeArgumentType |
time() |
private static final Collection<String> EXAMPLES
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType INVALID_UNIT_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType INVALID_COUNT_EXCEPTION
private static final it.unimi.dsi.fastutil.objects.Object2IntMap<String> UNITS
public static TimeArgumentType time()
public Integer parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
parse
in interface com.mojang.brigadier.arguments.ArgumentType<Integer>
com.mojang.brigadier.exceptions.CommandSyntaxException
public <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
listSuggestions
in interface com.mojang.brigadier.arguments.ArgumentType<Integer>
public Collection<String> getExamples()
getExamples
in interface com.mojang.brigadier.arguments.ArgumentType<Integer>