Game test fixes and additional docs (#2598)

* Game test fixes and additional docs

* Update mappings/net/minecraft/server/command/TestCommand.mapping

Co-authored-by: liach <7806504+liach@users.noreply.github.com>

Co-authored-by: liach <7806504+liach@users.noreply.github.com>
This commit is contained in:
Juuxel 2021-07-23 01:21:26 +03:00 committed by GitHub
parent e56d581682
commit afae2e2033
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 8 additions and 4 deletions

View File

@ -86,7 +86,7 @@ CLASS net/minecraft/class_4527 net/minecraft/server/command/TestCommand
ARG 0 context
METHOD method_22295 (Lcom/mojang/brigadier/context/CommandContext;)I
ARG 0 context
METHOD method_23647 setWorld (Lnet/minecraft/class_4529;Lnet/minecraft/class_3218;)V
METHOD method_23647 beforeBatch (Lnet/minecraft/class_4529;Lnet/minecraft/class_3218;)V
ARG 0 testFunction
ARG 1 world
METHOD method_23648 (Lcom/mojang/brigadier/context/CommandContext;)I

View File

@ -1,3 +1,5 @@
CLASS net/minecraft/class_6300 net/minecraft/test/AfterBatch
COMMENT {@code AfterBatch} methods are ran once the batch specified has finished.
COMMENT
COMMENT <p>{@code AfterBatch} methods must take 1 parameter of {@link net.minecraft.server.world.ServerWorld}.
METHOD method_35930 batchId ()Ljava/lang/String;

View File

@ -1,3 +1,5 @@
CLASS net/minecraft/class_6301 net/minecraft/test/BeforeBatch
COMMENT {@code BeforeBatch} methods are ran before the batch specified has started.
COMMENT
COMMENT <p>{@code BeforeBatch} methods must take 1 parameter of {@link net.minecraft.server.world.ServerWorld}.
METHOD method_35931 batchId ()Ljava/lang/String;

View File

@ -39,7 +39,7 @@ CLASS net/minecraft/class_4529 net/minecraft/test/TestFunction
ARG 9 starter
METHOD method_22296 getStructurePath ()Ljava/lang/String;
METHOD method_22297 start (Lnet/minecraft/class_4516;)V
ARG 1 parameter
ARG 1 context
METHOD method_22298 getStructureName ()Ljava/lang/String;
METHOD method_22299 getTickLimit ()I
METHOD method_22300 isRequired ()Z

View File

@ -17,7 +17,7 @@ CLASS net/minecraft/class_4519 net/minecraft/test/TestFunctions
ARG 0 testClass
METHOD method_22197 (Ljava/lang/String;Lnet/minecraft/class_4529;)Z
ARG 1 testFunction
METHOD method_22198 getAfterBatchConsumer (Ljava/lang/String;)Ljava/util/function/Consumer;
METHOD method_22198 getBeforeBatchConsumer (Ljava/lang/String;)Ljava/util/function/Consumer;
ARG 0 batchId
METHOD method_22199 getTestFunction (Ljava/lang/String;)Ljava/util/Optional;
ARG 0 structurePath
@ -27,7 +27,7 @@ CLASS net/minecraft/class_4519 net/minecraft/test/TestFunctions
ARG 0 testFunction
METHOD method_29405 getFailedTestFunctions ()Ljava/util/Collection;
METHOD method_29406 clearFailedTestFunctions ()V
METHOD method_32244 getBeforeBatchConsumer (Ljava/lang/String;)Ljava/util/function/Consumer;
METHOD method_32244 getAfterBatchConsumer (Ljava/lang/String;)Ljava/util/function/Consumer;
ARG 0 batchId
METHOD method_36068 register (Ljava/lang/Class;)V
ARG 0 testClass