public class OperationArgumentType extends Object implements com.mojang.brigadier.arguments.ArgumentType<OperationArgumentType.Operation>
Modifier and Type | Class and Description |
---|---|
(package private) static interface |
OperationArgumentType.IntOperator |
static interface |
OperationArgumentType.Operation |
Modifier and Type | Field and Description |
---|---|
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
DIVISION_ZERO_EXCEPTION |
private static Collection<String> |
EXAMPLES |
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
INVALID_OPERATION |
Constructor and Description |
---|
OperationArgumentType() |
Modifier and Type | Method and Description |
---|---|
Collection<String> |
getExamples() |
private static OperationArgumentType.IntOperator |
getIntOperator(String string) |
static OperationArgumentType.Operation |
getOperation(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext,
String string) |
private static OperationArgumentType.Operation |
getOperator(String string) |
<S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> |
listSuggestions(com.mojang.brigadier.context.CommandContext<S> context,
com.mojang.brigadier.suggestion.SuggestionsBuilder builder) |
static OperationArgumentType |
operation() |
OperationArgumentType.Operation |
parse(com.mojang.brigadier.StringReader stringReader) |
private static final Collection<String> EXAMPLES
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType INVALID_OPERATION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType DIVISION_ZERO_EXCEPTION
public static OperationArgumentType operation()
public static OperationArgumentType.Operation getOperation(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext, String string)
public OperationArgumentType.Operation parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
parse
in interface com.mojang.brigadier.arguments.ArgumentType<OperationArgumentType.Operation>
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<OperationArgumentType.Operation>
public Collection<String> getExamples()
getExamples
in interface com.mojang.brigadier.arguments.ArgumentType<OperationArgumentType.Operation>
private static OperationArgumentType.Operation getOperator(String string) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private static OperationArgumentType.IntOperator getIntOperator(String string) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException