More command stuff

This commit is contained in:
apple502j 2023-10-15 03:02:01 +09:00
parent 1311837b3e
commit d5c9c3bfb5
No known key found for this signature in database
GPG Key ID: 2A69798565A099A9
8 changed files with 31 additions and 17 deletions

View File

@ -2,14 +2,14 @@ CLASS net/minecraft/class_8839 net/minecraft/server/command/AbstractServerComman
METHOD method_54306 consumeResult (ZI)V METHOD method_54306 consumeResult (ZI)V
ARG 1 success ARG 1 success
ARG 2 result ARG 2 result
METHOD method_54307 withResultConsumer (Lnet/minecraft/class_8838;)Lnet/minecraft/class_8839; METHOD method_54307 withResultStorer (Lnet/minecraft/class_8838;)Lnet/minecraft/class_8839;
ARG 1 resultConsumer ARG 1 resultStorer
METHOD method_54308 withReturnValueConsumer (Ljava/util/function/IntConsumer;)Lnet/minecraft/class_8839; METHOD method_54308 withReturnValueConsumer (Ljava/util/function/IntConsumer;)Lnet/minecraft/class_8839;
ARG 1 returnValueConsumer ARG 1 returnValueConsumer
METHOD method_54309 consumeResult (I)V METHOD method_54309 consumeResult (I)V
ARG 1 result ARG 1 result
METHOD method_54310 getDispatcher ()Lcom/mojang/brigadier/CommandDispatcher; METHOD method_54310 getDispatcher ()Lcom/mojang/brigadier/CommandDispatcher;
METHOD method_54311 withDummyResultConsumer ()Lnet/minecraft/class_8839; METHOD method_54311 withDummyResultStorer ()Lnet/minecraft/class_8839;
METHOD method_54316 (Lcom/mojang/brigadier/context/CommandContext;ZI)V METHOD method_54316 (Lcom/mojang/brigadier/context/CommandContext;ZI)V
ARG 0 context ARG 0 context
ARG 1 success ARG 1 success

View File

@ -13,6 +13,8 @@ CLASS net/minecraft/class_3032 net/minecraft/server/command/DebugCommand
ARG 0 source ARG 0 source
METHOD method_13159 executeStart (Lnet/minecraft/class_2168;)I METHOD method_13159 executeStart (Lnet/minecraft/class_2168;)I
ARG 0 source ARG 0 source
METHOD method_13161 (Lnet/minecraft/class_2168;)Z
ARG 0 source
METHOD method_36353 (Lcom/mojang/brigadier/context/CommandContext;)I METHOD method_36353 (Lcom/mojang/brigadier/context/CommandContext;)I
ARG 0 context ARG 0 context
CLASS class_6347 Tracer CLASS class_6347 Tracer

View File

@ -31,6 +31,7 @@ CLASS net/minecraft/class_3050 net/minecraft/server/command/ExecuteCommand
METHOD method_13259 (Lcom/mojang/brigadier/context/CommandContext;)Lnet/minecraft/class_2168; METHOD method_13259 (Lcom/mojang/brigadier/context/CommandContext;)Lnet/minecraft/class_2168;
ARG 0 context ARG 0 context
METHOD method_13260 (Ljava/util/Collection;Lnet/minecraft/class_269;Lnet/minecraft/class_266;ZLnet/minecraft/class_2168;ZI)V METHOD method_13260 (Ljava/util/Collection;Lnet/minecraft/class_269;Lnet/minecraft/class_266;ZLnet/minecraft/class_2168;ZI)V
ARG 4 context
ARG 5 success ARG 5 success
ARG 6 result ARG 6 result
METHOD method_13261 testBlocksCondition (Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;Z)Ljava/util/OptionalInt; METHOD method_13261 testBlocksCondition (Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;Z)Ljava/util/OptionalInt;
@ -77,6 +78,7 @@ CLASS net/minecraft/class_3050 net/minecraft/server/command/ExecuteCommand
METHOD method_13276 (Lcom/mojang/brigadier/context/CommandContext;I)Lnet/minecraft/class_2520; METHOD method_13276 (Lcom/mojang/brigadier/context/CommandContext;I)Lnet/minecraft/class_2520;
ARG 1 result ARG 1 result
METHOD method_13277 (ZZLnet/minecraft/class_3002;Lnet/minecraft/class_2168;ZI)V METHOD method_13277 (ZZLnet/minecraft/class_3002;Lnet/minecraft/class_2168;ZI)V
ARG 3 context
ARG 4 success ARG 4 success
ARG 5 result ARG 5 result
METHOD method_13280 (Lcom/mojang/brigadier/context/CommandContext;)Z METHOD method_13280 (Lcom/mojang/brigadier/context/CommandContext;)Z
@ -113,6 +115,7 @@ CLASS net/minecraft/class_3050 net/minecraft/server/command/ExecuteCommand
METHOD method_13293 (Lcom/mojang/brigadier/context/CommandContext;)Ljava/util/Collection; METHOD method_13293 (Lcom/mojang/brigadier/context/CommandContext;)Ljava/util/Collection;
ARG 0 context ARG 0 context
METHOD method_13294 (Lnet/minecraft/class_3162;ZLnet/minecraft/class_2203$class_2209;Ljava/util/function/IntFunction;Lnet/minecraft/class_2168;ZI)V METHOD method_13294 (Lnet/minecraft/class_3162;ZLnet/minecraft/class_2203$class_2209;Ljava/util/function/IntFunction;Lnet/minecraft/class_2168;ZI)V
ARG 4 context
ARG 5 success ARG 5 success
ARG 6 result ARG 6 result
METHOD method_13295 (Lcom/mojang/brigadier/context/CommandContext;)Ljava/util/Collection; METHOD method_13295 (Lcom/mojang/brigadier/context/CommandContext;)Ljava/util/Collection;
@ -266,9 +269,10 @@ CLASS net/minecraft/class_3050 net/minecraft/server/command/ExecuteCommand
ARG 0 sources ARG 0 sources
ARG 1 sourceTransformer ARG 1 sourceTransformer
ARG 2 resultPredicate ARG 2 resultPredicate
ARG 3 contextChain
ARG 4 arguments ARG 4 arguments
ARG 5 control ARG 5 control
ARG 6 getFunctionNames ARG 6 functionNamesGetter
ARG 7 silent ARG 7 silent
METHOD method_54265 createExecutionSource (Ljava/util/function/Function;Ljava/util/function/IntPredicate;Ljava/util/List;Lnet/minecraft/class_8839;Z)Lnet/minecraft/class_8839; METHOD method_54265 createExecutionSource (Ljava/util/function/Function;Ljava/util/function/IntPredicate;Ljava/util/List;Lnet/minecraft/class_8839;Z)Lnet/minecraft/class_8839;
ARG 0 sourceTransformer ARG 0 sourceTransformer
@ -286,10 +290,16 @@ CLASS net/minecraft/class_3050 net/minecraft/server/command/ExecuteCommand
CLASS class_3052 Condition CLASS class_3052 Condition
METHOD test (Lcom/mojang/brigadier/context/CommandContext;)Z METHOD test (Lcom/mojang/brigadier/context/CommandContext;)Z
ARG 1 context ARG 1 context
CLASS class_8830 CLASS class_8830 FunctionNamesGetter
METHOD get (Lcom/mojang/brigadier/context/CommandContext;)Ljava/lang/Object; METHOD get (Lcom/mojang/brigadier/context/CommandContext;)Ljava/lang/Object;
ARG 1 context ARG 1 context
CLASS class_8831 IfUnlessRedirector CLASS class_8831 IfUnlessRedirector
FIELD field_46643 predicate Ljava/util/function/IntPredicate; FIELD field_46643 predicate Ljava/util/function/IntPredicate;
METHOD <init> (Z)V METHOD <init> (Z)V
ARG 1 positive ARG 1 success
METHOD method_54268 (I)Z
ARG 0 result
METHOD method_54269 (Lcom/mojang/brigadier/context/CommandContext;)Ljava/util/Collection;
ARG 0 context
METHOD method_54271 (I)Z
ARG 0 result

View File

@ -1,6 +1,8 @@
CLASS net/minecraft/class_8503 net/minecraft/server/command/ReturnCommand CLASS net/minecraft/class_8503 net/minecraft/server/command/ReturnCommand
METHOD method_51277 register (Lcom/mojang/brigadier/CommandDispatcher;)V METHOD method_51277 register (Lcom/mojang/brigadier/CommandDispatcher;)V
ARG 0 dispatcher ARG 0 dispatcher
METHOD method_54286 (Lnet/minecraft/class_8839;)Z
ARG 0 source
CLASS class_8834 ReturnRunRedirector CLASS class_8834 ReturnRunRedirector
METHOD method_54287 (Lnet/minecraft/class_8855;Lnet/minecraft/class_8839;)Lnet/minecraft/class_8839; METHOD method_54287 (Lnet/minecraft/class_8855;Lnet/minecraft/class_8839;)Lnet/minecraft/class_8839;
ARG 1 source ARG 1 source

View File

@ -13,7 +13,7 @@ CLASS net/minecraft/class_2168 net/minecraft/server/command/ServerCommandSource
FIELD field_9818 server Lnet/minecraft/server/MinecraftServer; FIELD field_9818 server Lnet/minecraft/server/MinecraftServer;
FIELD field_9819 output Lnet/minecraft/class_2165; FIELD field_9819 output Lnet/minecraft/class_2165;
FIELD field_9820 entity Lnet/minecraft/class_1297; FIELD field_9820 entity Lnet/minecraft/class_1297;
FIELD field_9821 resultConsumer Lnet/minecraft/class_8838; FIELD field_9821 resultStorer Lnet/minecraft/class_8838;
FIELD field_9822 rotation Lnet/minecraft/class_241; FIELD field_9822 rotation Lnet/minecraft/class_241;
FIELD field_9823 silent Z FIELD field_9823 silent Z
FIELD field_9824 REQUIRES_PLAYER_EXCEPTION Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType; FIELD field_9824 REQUIRES_PLAYER_EXCEPTION Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
@ -42,7 +42,7 @@ CLASS net/minecraft/class_2168 net/minecraft/server/command/ServerCommandSource
ARG 8 server ARG 8 server
ARG 9 entity ARG 9 entity
ARG 10 silent ARG 10 silent
ARG 11 resultConsumer ARG 11 resultStorer
ARG 12 entityAnchor ARG 12 entityAnchor
ARG 13 signedArguments ARG 13 signedArguments
ARG 14 messageChainTaskQueue ARG 14 messageChainTaskQueue
@ -78,6 +78,8 @@ CLASS net/minecraft/class_2168 net/minecraft/server/command/ServerCommandSource
ARG 1 message ARG 1 message
METHOD method_51411 withReturnValueConsumer (Ljava/util/function/IntConsumer;)Lnet/minecraft/class_2168; METHOD method_51411 withReturnValueConsumer (Ljava/util/function/IntConsumer;)Lnet/minecraft/class_2168;
ARG 1 returnValueConsumer ARG 1 returnValueConsumer
METHOD method_51412 (I)V
ARG 0 returnValue
METHOD method_54305 (Lnet/minecraft/class_2168;ZI)V METHOD method_54305 (Lnet/minecraft/class_2168;ZI)V
ARG 0 context ARG 0 context
ARG 1 success ARG 1 success
@ -90,8 +92,8 @@ CLASS net/minecraft/class_2168 net/minecraft/server/command/ServerCommandSource
COMMENT @throws CommandSyntaxException if this command source is not a player COMMENT @throws CommandSyntaxException if this command source is not a player
METHOD method_9208 withPosition (Lnet/minecraft/class_243;)Lnet/minecraft/class_2168; METHOD method_9208 withPosition (Lnet/minecraft/class_243;)Lnet/minecraft/class_2168;
ARG 1 position ARG 1 position
METHOD method_9209 mergeConsumers (Lnet/minecraft/class_8838;Ljava/util/function/BinaryOperator;)Lnet/minecraft/class_2168; METHOD method_9209 mergeStorers (Lnet/minecraft/class_8838;Ljava/util/function/BinaryOperator;)Lnet/minecraft/class_2168;
ARG 1 resultConsumer ARG 1 resultStorer
ARG 2 merger ARG 2 merger
METHOD method_9210 getRotation ()Lnet/minecraft/class_241; METHOD method_9210 getRotation ()Lnet/minecraft/class_241;
METHOD method_9211 getServer ()Lnet/minecraft/server/MinecraftServer; METHOD method_9211 getServer ()Lnet/minecraft/server/MinecraftServer;
@ -125,6 +127,5 @@ CLASS net/minecraft/class_2168 net/minecraft/server/command/ServerCommandSource
COMMENT Gets the entity from this command source or throws a command syntax exception if this command source is not an entity. COMMENT Gets the entity from this command source or throws a command syntax exception if this command source is not an entity.
METHOD method_9230 withMaxLevel (I)Lnet/minecraft/class_2168; METHOD method_9230 withMaxLevel (I)Lnet/minecraft/class_2168;
ARG 1 level ARG 1 level
METHOD method_9231 withConsumer (Lnet/minecraft/class_8838;)Lnet/minecraft/class_2168;
METHOD method_9232 withEntity (Lnet/minecraft/class_1297;)Lnet/minecraft/class_2168; METHOD method_9232 withEntity (Lnet/minecraft/class_1297;)Lnet/minecraft/class_2168;
ARG 1 entity ARG 1 entity

View File

@ -7,7 +7,9 @@ CLASS net/minecraft/class_2158 net/minecraft/server/function/CommandFunction
ARG 2 dispatcher ARG 2 dispatcher
ARG 3 source ARG 3 source
METHOD method_54417 parse (Lcom/mojang/brigadier/CommandDispatcher;Lnet/minecraft/class_8839;Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_8856; METHOD method_54417 parse (Lcom/mojang/brigadier/CommandDispatcher;Lnet/minecraft/class_8839;Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_8856;
ARG 0 dispatcher
ARG 1 source ARG 1 source
ARG 2 reader
METHOD method_9195 create (Lnet/minecraft/class_2960;Lcom/mojang/brigadier/CommandDispatcher;Lnet/minecraft/class_8839;Ljava/util/List;)Lnet/minecraft/class_2158; METHOD method_9195 create (Lnet/minecraft/class_2960;Lcom/mojang/brigadier/CommandDispatcher;Lnet/minecraft/class_8839;Ljava/util/List;)Lnet/minecraft/class_2158;
COMMENT Parses a function in the context of {@code source}. COMMENT Parses a function in the context of {@code source}.
COMMENT COMMENT

View File

@ -28,12 +28,6 @@ CLASS net/minecraft/class_2991 net/minecraft/server/function/CommandFunctionMana
METHOD method_12900 getDispatcher ()Lcom/mojang/brigadier/CommandDispatcher; METHOD method_12900 getDispatcher ()Lcom/mojang/brigadier/CommandDispatcher;
METHOD method_12904 execute (Lnet/minecraft/class_2158;Lnet/minecraft/class_2168;)V METHOD method_12904 execute (Lnet/minecraft/class_2158;Lnet/minecraft/class_2168;)V
COMMENT Executes a function. COMMENT Executes a function.
COMMENT
COMMENT <p>This is same as calling {@link #execute(CommandFunction, ServerCommandSource,
COMMENT Tracer, NbtCompound) execute(function, source, null, null)}.
COMMENT
COMMENT @return the command output value
COMMENT @see #execute(CommandFunction, ServerCommandSource, Tracer, NbtCompound)
ARG 1 function ARG 1 function
COMMENT the function COMMENT the function
ARG 2 source ARG 2 source

View File

@ -12,9 +12,12 @@ CLASS net/minecraft/class_8641 net/minecraft/server/function/Macro
METHOD method_52597 withMacroReplaced (Ljava/util/List;Ljava/util/List;Lcom/mojang/brigadier/CommandDispatcher;Lnet/minecraft/class_8839;)Lnet/minecraft/class_8868; METHOD method_52597 withMacroReplaced (Ljava/util/List;Ljava/util/List;Lcom/mojang/brigadier/CommandDispatcher;Lnet/minecraft/class_8839;)Lnet/minecraft/class_8868;
ARG 1 varNames ARG 1 varNames
ARG 2 arguments ARG 2 arguments
ARG 3 dispatcher
ARG 4 source ARG 4 source
METHOD method_53840 toString (Lnet/minecraft/class_2520;)Ljava/lang/String; METHOD method_53840 toString (Lnet/minecraft/class_2520;)Ljava/lang/String;
ARG 0 nbt ARG 0 nbt
METHOD method_54423 (Ljava/text/DecimalFormat;)V
ARG 0 format
METHOD method_54424 addArgumentsByIndices (Ljava/util/List;Lit/unimi/dsi/fastutil/ints/IntList;Ljava/util/List;)V METHOD method_54424 addArgumentsByIndices (Ljava/util/List;Lit/unimi/dsi/fastutil/ints/IntList;Ljava/util/List;)V
ARG 0 arguments ARG 0 arguments
ARG 1 indices ARG 1 indices