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 official dv
intermediary net/minecraft/class_2218
named net/minecraft/command/argument/OperationArgumentType
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static interface
OperationArgumentType.IntOperator
static interface
OperationArgumentType.Operation
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor Description OperationArgumentType()
-
Method Summary
Modifier and Type Method 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)
-
Field Details
-
EXAMPLES
- Mappings:
Namespace Name Mixin selector official a
Ldv;a:Ljava/util/Collection;
intermediary field_9929
Lnet/minecraft/class_2218;field_9929:Ljava/util/Collection;
named EXAMPLES
Lnet/minecraft/command/argument/OperationArgumentType;EXAMPLES:Ljava/util/Collection;
-
INVALID_OPERATION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType INVALID_OPERATION- Mappings:
Namespace Name Mixin selector official b
Ldv;b:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
intermediary field_9931
Lnet/minecraft/class_2218;field_9931:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
named INVALID_OPERATION
Lnet/minecraft/command/argument/OperationArgumentType;INVALID_OPERATION:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
-
DIVISION_ZERO_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType DIVISION_ZERO_EXCEPTION- Mappings:
Namespace Name Mixin selector official c
Ldv;c:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
intermediary field_9930
Lnet/minecraft/class_2218;field_9930:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
named DIVISION_ZERO_EXCEPTION
Lnet/minecraft/command/argument/OperationArgumentType;DIVISION_ZERO_EXCEPTION:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
-
-
Constructor Details
-
OperationArgumentType
public OperationArgumentType()
-
-
Method Details
-
operation
- Mappings:
Namespace Name Mixin selector official a
Ldv;a()Ldv;
intermediary method_9404
Lnet/minecraft/class_2218;method_9404()Lnet/minecraft/class_2218;
named operation
Lnet/minecraft/command/argument/OperationArgumentType;operation()Lnet/minecraft/command/argument/OperationArgumentType;
-
getOperation
public static OperationArgumentType.Operation getOperation(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext, String string)- Mappings:
Namespace Name Mixin selector official a
Ldv;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ldv$a;
intermediary method_9409
Lnet/minecraft/class_2218;method_9409(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_2218$class_2219;
named getOperation
Lnet/minecraft/command/argument/OperationArgumentType;getOperation(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/command/argument/OperationArgumentType$Operation;
-
parse
public OperationArgumentType.Operation parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Specified by:
parse
in interfacecom.mojang.brigadier.arguments.ArgumentType<OperationArgumentType.Operation>
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector official a
Ldv;a(Lcom/mojang/brigadier/StringReader;)Ldv$a;
intermediary method_9412
Lnet/minecraft/class_2218;method_9412(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_2218$class_2219;
named parse
Lnet/minecraft/command/argument/OperationArgumentType;parse(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/command/argument/OperationArgumentType$Operation;
-
listSuggestions
public <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder)- Specified by:
listSuggestions
in interfacecom.mojang.brigadier.arguments.ArgumentType<OperationArgumentType.Operation>
- Mappings:
Namespace Name Mixin selector official listSuggestions
Ldv;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;
named listSuggestions
Lnet/minecraft/command/argument/OperationArgumentType;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
-
getExamples
- Specified by:
getExamples
in interfacecom.mojang.brigadier.arguments.ArgumentType<OperationArgumentType.Operation>
- Mappings:
Namespace Name Mixin selector official getExamples
Ldv;getExamples()Ljava/util/Collection;
intermediary getExamples
Lnet/minecraft/class_2218;getExamples()Ljava/util/Collection;
named getExamples
Lnet/minecraft/command/argument/OperationArgumentType;getExamples()Ljava/util/Collection;
-
getOperator
private static OperationArgumentType.Operation getOperator(String string) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector official a
Ldv;a(Ljava/lang/String;)Ldv$a;
intermediary method_9413
Lnet/minecraft/class_2218;method_9413(Ljava/lang/String;)Lnet/minecraft/class_2218$class_2219;
named getOperator
Lnet/minecraft/command/argument/OperationArgumentType;getOperator(Ljava/lang/String;)Lnet/minecraft/command/argument/OperationArgumentType$Operation;
-
getIntOperator
private static OperationArgumentType.IntOperator getIntOperator(String string) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector official b
Ldv;b(Ljava/lang/String;)Ldv$b;
intermediary method_9407
Lnet/minecraft/class_2218;method_9407(Ljava/lang/String;)Lnet/minecraft/class_2218$class_2220;
named getIntOperator
Lnet/minecraft/command/argument/OperationArgumentType;getIntOperator(Ljava/lang/String;)Lnet/minecraft/command/argument/OperationArgumentType$IntOperator;
-