Package net.minecraft.commands.arguments
Class OperationArgument
java.lang.Object
net.minecraft.commands.arguments.OperationArgument
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<OperationArgument.Operation>
public class OperationArgument
extends Object
implements com.mojang.brigadier.arguments.ArgumentType<OperationArgument.Operation>
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
(package private) static interface
-
Field Summary
Modifier and TypeFieldDescriptionprivate static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
private static Collection<String>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic OperationArgument.Operation
getOperation(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_103276_, String p_103277_)
private static OperationArgument.Operation
getOperation(String p_103282_)
private static OperationArgument.SimpleOperation
getSimpleOperation(String p_103287_)
<S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
listSuggestions(com.mojang.brigadier.context.CommandContext<S> p_103302_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_103303_)
static OperationArgument
parse(com.mojang.brigadier.StringReader p_103274_)
-
Field Details
-
EXAMPLES
-
ERROR_INVALID_OPERATION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_INVALID_OPERATION -
ERROR_DIVIDE_BY_ZERO
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_DIVIDE_BY_ZERO
-
-
Constructor Details
-
OperationArgument
public OperationArgument()
-
-
Method Details
-
operation
-
getOperation
public static OperationArgument.Operation getOperation(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_103276_, String p_103277_) -
parse
public OperationArgument.Operation parse(com.mojang.brigadier.StringReader p_103274_) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Specified by:
parse
in interfacecom.mojang.brigadier.arguments.ArgumentType<OperationArgument.Operation>
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
listSuggestions
public <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> p_103302_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_103303_)- Specified by:
listSuggestions
in interfacecom.mojang.brigadier.arguments.ArgumentType<OperationArgument.Operation>
-
getExamples
- Specified by:
getExamples
in interfacecom.mojang.brigadier.arguments.ArgumentType<OperationArgument.Operation>
-
getOperation
private static OperationArgument.Operation getOperation(String p_103282_) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getSimpleOperation
private static OperationArgument.SimpleOperation getSimpleOperation(String p_103287_) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-