Package net.minecraft.command.argument
Class OperationArgumentType
java.lang.Object
net.minecraft.command.argument.OperationArgumentType
- All Implemented Interfaces:
- com.mojang.brigadier.arguments.ArgumentType<OperationArgumentType.Operation>
public class OperationArgumentType
extends Object
implements com.mojang.brigadier.arguments.ArgumentType<OperationArgumentType.Operation>
- Mappings:
- Namespace - Name - named - net/minecraft/command/argument/OperationArgumentType- intermediary - net/minecraft/class_2218- official - ft
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionprivate static interfacestatic interface
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeprivate static final Collection<String> private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprivate static OperationArgumentType.IntOperatorgetIntOperator(String operator) getOperation(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) private static OperationArgumentType.OperationgetOperator(String operator) <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder) static OperationArgumentTypeparse(com.mojang.brigadier.StringReader stringReader) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.mojang.brigadier.arguments.ArgumentTypeparse
- 
Field Details- 
EXAMPLES- Mappings:
- Namespace - Name - Mixin selector - named - EXAMPLES- Lnet/minecraft/command/argument/OperationArgumentType;EXAMPLES:Ljava/util/Collection;- intermediary - field_9929- Lnet/minecraft/class_2218;field_9929:Ljava/util/Collection;- official - a- Lft;a:Ljava/util/Collection;
 
- 
INVALID_OPERATIONprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType INVALID_OPERATION- Mappings:
- Namespace - Name - Mixin selector - named - INVALID_OPERATION- Lnet/minecraft/command/argument/OperationArgumentType;INVALID_OPERATION:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;- intermediary - field_9931- Lnet/minecraft/class_2218;field_9931:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;- official - b- Lft;b:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
 
- 
DIVISION_ZERO_EXCEPTIONprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType DIVISION_ZERO_EXCEPTION- Mappings:
- Namespace - Name - Mixin selector - named - DIVISION_ZERO_EXCEPTION- Lnet/minecraft/command/argument/OperationArgumentType;DIVISION_ZERO_EXCEPTION:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;- intermediary - field_9930- Lnet/minecraft/class_2218;field_9930:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;- official - c- Lft;c:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
 
 
- 
- 
Constructor Details- 
OperationArgumentTypepublic OperationArgumentType()
 
- 
- 
Method Details- 
operation- Mappings:
- Namespace - Name - Mixin selector - named - operation- Lnet/minecraft/command/argument/OperationArgumentType;operation()Lnet/minecraft/command/argument/OperationArgumentType;- intermediary - method_9404- Lnet/minecraft/class_2218;method_9404()Lnet/minecraft/class_2218;- official - a- Lft;a()Lft;
 
- 
getOperationpublic static OperationArgumentType.Operation getOperation(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) - Mappings:
- Namespace - Name - Mixin selector - named - getOperation- Lnet/minecraft/command/argument/OperationArgumentType;getOperation(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/command/argument/OperationArgumentType$Operation;- intermediary - method_9409- Lnet/minecraft/class_2218;method_9409(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_2218$class_2219;- official - a- Lft;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lft$a;
 
- 
parsepublic OperationArgumentType.Operation parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
- parsein interface- com.mojang.brigadier.arguments.ArgumentType<OperationArgumentType.Operation>
- Throws:
- com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
- Namespace - Name - Mixin selector - named - parse- Lnet/minecraft/command/argument/OperationArgumentType;parse(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/command/argument/OperationArgumentType$Operation;- intermediary - method_9412- Lnet/minecraft/class_2218;method_9412(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_2218$class_2219;- official - a- Lft;a(Lcom/mojang/brigadier/StringReader;)Lft$a;
 
- 
listSuggestionspublic <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder) - Specified by:
- listSuggestionsin interface- com.mojang.brigadier.arguments.ArgumentType<OperationArgumentType.Operation>
- Mappings:
- Namespace - Name - Mixin selector - named - listSuggestions- Lnet/minecraft/command/argument/OperationArgumentType;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;- intermediary - listSuggestions- Lnet/minecraft/class_2218;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;- official - listSuggestions- Lft;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
 
- 
getExamples- Specified by:
- getExamplesin interface- com.mojang.brigadier.arguments.ArgumentType<OperationArgumentType.Operation>
 
- 
getOperatorprivate static OperationArgumentType.Operation getOperator(String operator) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
- com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
- Namespace - Name - Mixin selector - named - getOperator- Lnet/minecraft/command/argument/OperationArgumentType;getOperator(Ljava/lang/String;)Lnet/minecraft/command/argument/OperationArgumentType$Operation;- intermediary - method_9413- Lnet/minecraft/class_2218;method_9413(Ljava/lang/String;)Lnet/minecraft/class_2218$class_2219;- official - a- Lft;a(Ljava/lang/String;)Lft$a;
 
- 
getIntOperatorprivate static OperationArgumentType.IntOperator getIntOperator(String operator) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
- com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
- Namespace - Name - Mixin selector - named - getIntOperator- Lnet/minecraft/command/argument/OperationArgumentType;getIntOperator(Ljava/lang/String;)Lnet/minecraft/command/argument/OperationArgumentType$IntOperator;- intermediary - method_9407- Lnet/minecraft/class_2218;method_9407(Ljava/lang/String;)Lnet/minecraft/class_2218$class_2220;- official - b- Lft;b(Ljava/lang/String;)Lft$b;
 
 
-