public class OperationArgument extends java.lang.Object implements com.mojang.brigadier.arguments.ArgumentType<OperationArgument.IOperation>
Modifier and Type | Class and Description |
---|---|
(package private) static interface |
OperationArgument.IIntOperation |
static interface |
OperationArgument.IOperation |
Modifier and Type | Field and Description |
---|---|
private static java.util.Collection<java.lang.String> |
EXAMPLES |
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
OPERATION_DIVIDE_BY_ZERO |
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
OPERATION_INVALID |
Constructor and Description |
---|
OperationArgument() |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<java.lang.String> |
getExamples() |
static OperationArgument.IOperation |
getOperation(com.mojang.brigadier.context.CommandContext<CommandSource> context,
java.lang.String name) |
<S> java.util.concurrent.CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> |
listSuggestions(com.mojang.brigadier.context.CommandContext<S> p_listSuggestions_1_,
com.mojang.brigadier.suggestion.SuggestionsBuilder p_listSuggestions_2_) |
static OperationArgument |
operation() |
OperationArgument.IOperation |
parse(com.mojang.brigadier.StringReader p_parse_1_) |
private static OperationArgument.IOperation |
parseOperation(java.lang.String name) |
private static OperationArgument.IIntOperation |
parseOperation0(java.lang.String name) |
private static final java.util.Collection<java.lang.String> EXAMPLES
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType OPERATION_INVALID
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType OPERATION_DIVIDE_BY_ZERO
public static OperationArgument operation()
public static OperationArgument.IOperation getOperation(com.mojang.brigadier.context.CommandContext<CommandSource> context, java.lang.String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
public OperationArgument.IOperation parse(com.mojang.brigadier.StringReader p_parse_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
parse
in interface com.mojang.brigadier.arguments.ArgumentType<OperationArgument.IOperation>
com.mojang.brigadier.exceptions.CommandSyntaxException
public <S> java.util.concurrent.CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> p_listSuggestions_1_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_listSuggestions_2_)
listSuggestions
in interface com.mojang.brigadier.arguments.ArgumentType<OperationArgument.IOperation>
public java.util.Collection<java.lang.String> getExamples()
getExamples
in interface com.mojang.brigadier.arguments.ArgumentType<OperationArgument.IOperation>
private static OperationArgument.IOperation parseOperation(java.lang.String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private static OperationArgument.IIntOperation parseOperation0(java.lang.String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException