类 OperationArgumentType
- java.lang.Object
-
- net.minecraft.command.argument.OperationArgumentType
-
- 所有已实现的接口:
com.mojang.brigadier.arguments.ArgumentType<OperationArgumentType.Operation>
public class OperationArgumentType extends Object implements com.mojang.brigadier.arguments.ArgumentType<OperationArgumentType.Operation>
- Mappings:
Namespace Name official eaintermediary net/minecraft/class_2218named net/minecraft/command/argument/OperationArgumentType
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 (专用程序包) static interfaceOperationArgumentType.IntOperatorstatic interfaceOperationArgumentType.Operation
-
字段概要
字段 修饰符和类型 字段 说明 private static com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeDIVISION_ZERO_EXCEPTIONprivate static Collection<String>EXAMPLESprivate static com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeINVALID_OPERATION
-
构造器概要
构造器 构造器 说明 OperationArgumentType()
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 Collection<String>getExamples()private static OperationArgumentType.IntOperatorgetIntOperator(String string)static OperationArgumentType.OperationgetOperation(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext, String string)private static OperationArgumentType.OperationgetOperator(String string)<S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder)static OperationArgumentTypeoperation()OperationArgumentType.Operationparse(com.mojang.brigadier.StringReader stringReader)
-
-
-
字段详细资料
-
EXAMPLES
private static final Collection<String> EXAMPLES
- Mappings:
Namespace Name Mixin selector official aLea;a:Ljava/util/Collection;intermediary field_9929Lnet/minecraft/class_2218;field_9929:Ljava/util/Collection;named EXAMPLESLnet/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 bLea;b:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;intermediary field_9931Lnet/minecraft/class_2218;field_9931:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;named INVALID_OPERATIONLnet/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 cLea;c:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;intermediary field_9930Lnet/minecraft/class_2218;field_9930:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;named DIVISION_ZERO_EXCEPTIONLnet/minecraft/command/argument/OperationArgumentType;DIVISION_ZERO_EXCEPTION:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
-
-
方法详细资料
-
operation
public static OperationArgumentType operation()
- Mappings:
Namespace Name Mixin selector official aLea;a()Lea;intermediary method_9404Lnet/minecraft/class_2218;method_9404()Lnet/minecraft/class_2218;named operationLnet/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 aLea;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lea$a;intermediary method_9409Lnet/minecraft/class_2218;method_9409(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_2218$class_2219;named getOperationLnet/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
- 指定者:
parse在接口中com.mojang.brigadier.arguments.ArgumentType<OperationArgumentType.Operation>- 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector official aLea;a(Lcom/mojang/brigadier/StringReader;)Lea$a;intermediary method_9412Lnet/minecraft/class_2218;method_9412(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_2218$class_2219;named parseLnet/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)
- 指定者:
listSuggestions在接口中com.mojang.brigadier.arguments.ArgumentType<OperationArgumentType.Operation>- Mappings:
Namespace Name Mixin selector official listSuggestionsLea;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;intermediary listSuggestionsLnet/minecraft/class_2218;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;named listSuggestionsLnet/minecraft/command/argument/OperationArgumentType;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
-
getExamples
public Collection<String> getExamples()
- 指定者:
getExamples在接口中com.mojang.brigadier.arguments.ArgumentType<OperationArgumentType.Operation>- Mappings:
Namespace Name Mixin selector official getExamplesLea;getExamples()Ljava/util/Collection;intermediary getExamplesLnet/minecraft/class_2218;getExamples()Ljava/util/Collection;named getExamplesLnet/minecraft/command/argument/OperationArgumentType;getExamples()Ljava/util/Collection;
-
getOperator
private static OperationArgumentType.Operation getOperator(String string) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector official aLea;a(Ljava/lang/String;)Lea$a;intermediary method_9413Lnet/minecraft/class_2218;method_9413(Ljava/lang/String;)Lnet/minecraft/class_2218$class_2219;named getOperatorLnet/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
- 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector official bLea;b(Ljava/lang/String;)Lea$b;intermediary method_9407Lnet/minecraft/class_2218;method_9407(Ljava/lang/String;)Lnet/minecraft/class_2218$class_2220;named getIntOperatorLnet/minecraft/command/argument/OperationArgumentType;getIntOperator(Ljava/lang/String;)Lnet/minecraft/command/argument/OperationArgumentType$IntOperator;
-
-