From 77d18483c47424c7a73b7e302a4036195dc93203 Mon Sep 17 00:00:00 2001 From: apple502j <33279053+apple502j@users.noreply.github.com> Date: Thu, 12 Sep 2024 13:35:47 +0900 Subject: [PATCH] 24w37a some stuff (#3981) --- .../client/gui/screen/TitleScreen.mapping | 5 +++ .../screen/world/CreateWorldScreen.mapping | 28 ++++++++++++++++- .../screen/world/InitialWorldOptions.mapping | 1 + .../gui/screen/world/WorldCreator.mapping | 10 ++++++ .../world/GeneratorOptionsFactory.mapping | 5 +++ .../command/CommandRegistryAccess.mapping | 1 + .../minecraft/network/PacketByteBuf.mapping | 5 +++ .../network/codec/PacketCodec.mapping | 16 ++++++++++ .../entity/EntitySubPredicateTypes.mapping | 2 ++ .../net/minecraft/registry/tag/TagKey.mapping | 4 +++ .../resource/ResourceReloader.mapping | 2 ++ .../SinglePreparationResourceReloader.mapping | 2 ++ .../minecraft/screen/ScreenHandler.mapping | 4 +++ .../server/command/GameRuleCommand.mapping | 1 + .../server/network/ServerPlayerEntity.mapping | 31 +++++++++++++++++++ mappings/net/minecraft/state/State.mapping | 14 +++++++-- .../net/minecraft/state/StateManager.mapping | 12 +++++++ .../state/property/DirectionProperty.mapping | 2 ++ .../state/property/EnumProperty.mapping | 11 +++++++ .../minecraft/state/property/Property.mapping | 2 ++ .../net/minecraft/util/math/ChunkPos.mapping | 8 +++++ .../net/minecraft/village/TradeOffers.mapping | 4 +++ .../world/gen/GeneratorOptions.mapping | 1 + .../minecraft/world/gen/WorldPresets.mapping | 2 ++ .../world/gen/foliage/FoliagePlacer.mapping | 2 ++ 25 files changed, 172 insertions(+), 3 deletions(-) create mode 100644 mappings/net/minecraft/client/gui/screen/world/InitialWorldOptions.mapping create mode 100644 mappings/net/minecraft/client/world/GeneratorOptionsFactory.mapping diff --git a/mappings/net/minecraft/client/gui/screen/TitleScreen.mapping b/mappings/net/minecraft/client/gui/screen/TitleScreen.mapping index ddf29e2c43..72999226b8 100644 --- a/mappings/net/minecraft/client/gui/screen/TitleScreen.mapping +++ b/mappings/net/minecraft/client/gui/screen/TitleScreen.mapping @@ -49,3 +49,8 @@ CLASS net/minecraft/class_442 net/minecraft/client/gui/screen/TitleScreen METHOD method_44692 getMultiplayerDisabledText ()Lnet/minecraft/class_2561; METHOD method_59752 setWidgetAlpha (F)V ARG 1 alpha + METHOD method_64237 addCreateTestWorldButton (II)I + ARG 1 y + ARG 2 height + METHOD method_64238 (Lnet/minecraft/class_4185;)V + ARG 1 button diff --git a/mappings/net/minecraft/client/gui/screen/world/CreateWorldScreen.mapping b/mappings/net/minecraft/client/gui/screen/world/CreateWorldScreen.mapping index ef3a8492b5..1f7ff293f6 100644 --- a/mappings/net/minecraft/client/gui/screen/world/CreateWorldScreen.mapping +++ b/mappings/net/minecraft/client/gui/screen/world/CreateWorldScreen.mapping @@ -53,7 +53,7 @@ CLASS net/minecraft/class_525 net/minecraft/client/gui/screen/world/CreateWorldS METHOD method_30296 getScannedPack (Lnet/minecraft/class_7712;)Lcom/mojang/datafixers/util/Pair; ARG 1 dataConfiguration METHOD method_30297 onCloseScreen ()V - METHOD method_31130 create (Lnet/minecraft/class_310;Lnet/minecraft/class_437;)V + METHOD method_31130 show (Lnet/minecraft/class_310;Lnet/minecraft/class_437;)V ARG 0 client ARG 1 parent METHOD method_40212 create (Lnet/minecraft/class_310;Lnet/minecraft/class_437;Lnet/minecraft/class_1940;Lnet/minecraft/class_7193;Ljava/nio/file/Path;)Lnet/minecraft/class_525; @@ -72,6 +72,10 @@ CLASS net/minecraft/class_525 net/minecraft/client/gui/screen/world/CreateWorldS METHOD method_41849 createServerConfig (Lnet/minecraft/class_3283;Lnet/minecraft/class_7712;)Lnet/minecraft/class_7237$class_6906; ARG 0 dataPackManager ARG 1 dataConfiguration + METHOD method_41851 (Lnet/minecraft/class_5350;Lnet/minecraft/class_7780;Lnet/minecraft/class_7749;)Lnet/minecraft/class_7193; + ARG 0 dataPackContents + ARG 1 dynamicRegistries + ARG 2 settings METHOD method_41852 showMessage (Lnet/minecraft/class_310;Lnet/minecraft/class_2561;)V ARG 0 client ARG 1 text @@ -113,6 +117,28 @@ CLASS net/minecraft/class_525 net/minecraft/client/gui/screen/world/CreateWorldS ARG 3 throwable METHOD method_59841 (Lnet/minecraft/class_7193;)Lnet/minecraft/class_7193; ARG 0 generatorOptionsHolder + METHOD method_64243 (Lnet/minecraft/class_5350;Lnet/minecraft/class_7780;Lnet/minecraft/class_7749;)Lnet/minecraft/class_7193; + ARG 0 dataPackContents + ARG 1 dynamicRegistries + ARG 2 settings + METHOD method_64244 show (Lnet/minecraft/class_310;Lnet/minecraft/class_437;Ljava/util/function/Function;Lnet/minecraft/class_10221;Lnet/minecraft/class_5321;)V + ARG 0 client + ARG 1 parent + ARG 2 settingsSupplier + ARG 3 generatorOptionsFactory + ARG 4 presetKey + METHOD method_64245 (Lnet/minecraft/class_10221;Lnet/minecraft/class_6860;Lnet/minecraft/class_5350;Lnet/minecraft/class_7780;Lnet/minecraft/class_7749;)Lnet/minecraft/class_7193; + ARG 1 resourceManager + ARG 2 dataPackContents + ARG 3 dynamicRegistries + ARG 4 settings + METHOD method_64246 (Ljava/util/function/Function;Lnet/minecraft/class_7237$class_7660;)Lnet/minecraft/class_7237$class_7661; + ARG 1 context + METHOD method_64247 (Lnet/minecraft/class_7237$class_7660;)Lnet/minecraft/class_7726; + ARG 0 context + METHOD method_64248 showTestWorld (Lnet/minecraft/class_310;Lnet/minecraft/class_437;)V + ARG 0 client + ARG 1 parent CLASS class_8093 GameTab FIELD field_42175 GAME_TAB_TITLE_TEXT Lnet/minecraft/class_2561; FIELD field_42176 ALLOW_COMMANDS_TEXT Lnet/minecraft/class_2561; diff --git a/mappings/net/minecraft/client/gui/screen/world/InitialWorldOptions.mapping b/mappings/net/minecraft/client/gui/screen/world/InitialWorldOptions.mapping new file mode 100644 index 0000000000..c0f8056406 --- /dev/null +++ b/mappings/net/minecraft/client/gui/screen/world/InitialWorldOptions.mapping @@ -0,0 +1 @@ +CLASS net/minecraft/class_10220 net/minecraft/client/gui/screen/world/InitialWorldOptions diff --git a/mappings/net/minecraft/client/gui/screen/world/WorldCreator.mapping b/mappings/net/minecraft/client/gui/screen/world/WorldCreator.mapping index 8b71a8e815..4941fdae77 100644 --- a/mappings/net/minecraft/client/gui/screen/world/WorldCreator.mapping +++ b/mappings/net/minecraft/client/gui/screen/world/WorldCreator.mapping @@ -87,6 +87,16 @@ CLASS net/minecraft/class_8100 net/minecraft/client/gui/screen/world/WorldCreato METHOD method_49703 getWorldDirectoryName ()Ljava/lang/String; METHOD method_49704 toDirectoryName (Ljava/lang/String;)Ljava/lang/String; ARG 1 worldName + METHOD method_64249 (Lnet/minecraft/class_5321;Lnet/minecraft/class_2378;)Ljava/util/Optional; + ARG 1 registry + METHOD method_64250 (Lnet/minecraft/class_1928$class_4313;)V + ARG 1 rule + METHOD method_64251 (Lnet/minecraft/class_3232;)V + ARG 1 config + METHOD method_64252 (Lnet/minecraft/class_6880$class_6883;)Lnet/minecraft/class_3232; + ARG 0 preset + METHOD method_64253 (Lnet/minecraft/class_7193;Lnet/minecraft/class_5321;)Ljava/util/Optional; + ARG 1 presetKey CLASS class_4539 Mode FIELD field_20629 defaultGameMode Lnet/minecraft/class_1934; FIELD field_42224 name Lnet/minecraft/class_2561; diff --git a/mappings/net/minecraft/client/world/GeneratorOptionsFactory.mapping b/mappings/net/minecraft/client/world/GeneratorOptionsFactory.mapping new file mode 100644 index 0000000000..1f541bf142 --- /dev/null +++ b/mappings/net/minecraft/client/world/GeneratorOptionsFactory.mapping @@ -0,0 +1,5 @@ +CLASS net/minecraft/class_10221 net/minecraft/client/world/GeneratorOptionsFactory + METHOD apply (Lnet/minecraft/class_5350;Lnet/minecraft/class_7780;Lnet/minecraft/class_7749;)Lnet/minecraft/class_7193; + ARG 1 dataPackContents + ARG 2 dynamicRegistries + ARG 3 settings diff --git a/mappings/net/minecraft/command/CommandRegistryAccess.mapping b/mappings/net/minecraft/command/CommandRegistryAccess.mapping index 34c3fef3ba..a25994b158 100644 --- a/mappings/net/minecraft/command/CommandRegistryAccess.mapping +++ b/mappings/net/minecraft/command/CommandRegistryAccess.mapping @@ -8,6 +8,7 @@ CLASS net/minecraft/class_7157 net/minecraft/command/CommandRegistryAccess METHOD method_46722 of (Lnet/minecraft/class_7225$class_7874;Lnet/minecraft/class_7699;)Lnet/minecraft/class_7157; ARG 0 registries ARG 1 enabledFeatures + METHOD method_64226 getEnabledFeatures ()Lnet/minecraft/class_7699; CLASS 1 METHOD method_56810 (Lnet/minecraft/class_7699;Lnet/minecraft/class_7225$class_7226;)Lnet/minecraft/class_7225$class_7226; ARG 1 wrapper diff --git a/mappings/net/minecraft/network/PacketByteBuf.mapping b/mappings/net/minecraft/network/PacketByteBuf.mapping index 955995b6d2..a52ac257ea 100644 --- a/mappings/net/minecraft/network/PacketByteBuf.mapping +++ b/mappings/net/minecraft/network/PacketByteBuf.mapping @@ -1021,6 +1021,11 @@ CLASS net/minecraft/class_2540 net/minecraft/network/PacketByteBuf METHOD method_62787 readSyncId (Lio/netty/buffer/ByteBuf;)I ARG 0 buf METHOD method_62788 readSyncId ()I + METHOD method_64263 writeChunkPos (Lio/netty/buffer/ByteBuf;Lnet/minecraft/class_1923;)V + ARG 0 buf + ARG 1 pos + METHOD method_64264 readChunkPos (Lio/netty/buffer/ByteBuf;)Lnet/minecraft/class_1923; + ARG 0 buf METHOD nioBuffer (II)Ljava/nio/ByteBuffer; ARG 1 index ARG 2 length diff --git a/mappings/net/minecraft/network/codec/PacketCodec.mapping b/mappings/net/minecraft/network/codec/PacketCodec.mapping index 2c4dd33085..e7f563f3a9 100644 --- a/mappings/net/minecraft/network/codec/PacketCodec.mapping +++ b/mappings/net/minecraft/network/codec/PacketCodec.mapping @@ -167,6 +167,22 @@ CLASS net/minecraft/class_9139 net/minecraft/network/codec/PacketCodec ARG 10 codec6 ARG 11 from6 ARG 12 to + METHOD method_64265 tuple (Lnet/minecraft/class_9139;Ljava/util/function/Function;Lnet/minecraft/class_9139;Ljava/util/function/Function;Lnet/minecraft/class_9139;Ljava/util/function/Function;Lnet/minecraft/class_9139;Ljava/util/function/Function;Lnet/minecraft/class_9139;Ljava/util/function/Function;Lnet/minecraft/class_9139;Ljava/util/function/Function;Lnet/minecraft/class_9139;Ljava/util/function/Function;Lcom/mojang/datafixers/util/Function7;)Lnet/minecraft/class_9139; + ARG 0 codec1 + ARG 1 from1 + ARG 2 codec2 + ARG 3 from2 + ARG 4 codec3 + ARG 5 from3 + ARG 6 codec4 + ARG 7 from4 + ARG 8 codec5 + ARG 9 from5 + ARG 10 codec6 + ARG 11 from6 + ARG 12 codec7 + ARG 13 from7 + ARG 14 to CLASS 6 FIELD field_49712 codecSupplier Ljava/util/function/Supplier; CLASS class_9140 ResultFunction diff --git a/mappings/net/minecraft/predicate/entity/EntitySubPredicateTypes.mapping b/mappings/net/minecraft/predicate/entity/EntitySubPredicateTypes.mapping index 7eaa7d8ca6..443cb80d88 100644 --- a/mappings/net/minecraft/predicate/entity/EntitySubPredicateTypes.mapping +++ b/mappings/net/minecraft/predicate/entity/EntitySubPredicateTypes.mapping @@ -44,6 +44,8 @@ CLASS net/minecraft/class_7378 net/minecraft/predicate/entity/EntitySubPredicate ARG 1 type METHOD method_59667 wolfVariant (Lnet/minecraft/class_6885;)Lnet/minecraft/class_7376; ARG 0 wolfVariant + METHOD method_64175 (Lnet/minecraft/class_1297;)Ljava/util/Optional; + ARG 0 entity CLASS class_7380 VariantType FIELD field_38741 variantGetter Ljava/util/function/Function; FIELD field_49794 codec Lcom/mojang/serialization/MapCodec; diff --git a/mappings/net/minecraft/registry/tag/TagKey.mapping b/mappings/net/minecraft/registry/tag/TagKey.mapping index e29e283e81..426c8e3671 100644 --- a/mappings/net/minecraft/registry/tag/TagKey.mapping +++ b/mappings/net/minecraft/registry/tag/TagKey.mapping @@ -21,3 +21,7 @@ CLASS net/minecraft/class_6862 net/minecraft/registry/tag/TagKey ARG 1 registryRef METHOD method_41008 tryCast (Lnet/minecraft/class_5321;)Ljava/util/Optional; ARG 1 registryRef + METHOD method_64142 (Lnet/minecraft/class_5321;Lnet/minecraft/class_2960;)Lnet/minecraft/class_6862; + ARG 1 id + METHOD method_64143 packetCodec (Lnet/minecraft/class_5321;)Lnet/minecraft/class_9139; + ARG 0 registryRef diff --git a/mappings/net/minecraft/resource/ResourceReloader.mapping b/mappings/net/minecraft/resource/ResourceReloader.mapping index e4f6a002ac..4922d1e74d 100644 --- a/mappings/net/minecraft/resource/ResourceReloader.mapping +++ b/mappings/net/minecraft/resource/ResourceReloader.mapping @@ -33,6 +33,8 @@ CLASS net/minecraft/class_3302 net/minecraft/resource/ResourceReloader COMMENT the synchronizer ARG 2 manager COMMENT the resource manager + ARG 3 prepareExecutor + ARG 4 applyExecutor CLASS class_4045 Synchronizer COMMENT A synchronizer to indicate completion of a reloader's prepare stage and COMMENT to allow start of the apply stage only if all reloaders have finished diff --git a/mappings/net/minecraft/resource/SinglePreparationResourceReloader.mapping b/mappings/net/minecraft/resource/SinglePreparationResourceReloader.mapping index 57d5b32b09..e658876986 100644 --- a/mappings/net/minecraft/resource/SinglePreparationResourceReloader.mapping +++ b/mappings/net/minecraft/resource/SinglePreparationResourceReloader.mapping @@ -25,3 +25,5 @@ CLASS net/minecraft/class_4080 net/minecraft/resource/SinglePreparationResourceR COMMENT the resource manager ARG 2 profiler COMMENT the prepare profiler + METHOD method_18790 (Lnet/minecraft/class_3300;Ljava/lang/Object;)V + ARG 2 prepared diff --git a/mappings/net/minecraft/screen/ScreenHandler.mapping b/mappings/net/minecraft/screen/ScreenHandler.mapping index c1303f8fca..4e37a41c8e 100644 --- a/mappings/net/minecraft/screen/ScreenHandler.mapping +++ b/mappings/net/minecraft/screen/ScreenHandler.mapping @@ -279,6 +279,9 @@ CLASS net/minecraft/class_1703 net/minecraft/screen/ScreenHandler ARG 1 playerInventory ARG 2 left ARG 3 top + METHOD method_64192 dropCursorStack (Lnet/minecraft/class_1657;Lnet/minecraft/class_1799;)V + ARG 0 player + ARG 1 stack METHOD method_7591 packQuickCraftData (II)I ARG 0 quickCraftStage ARG 1 buttonId @@ -303,6 +306,7 @@ CLASS net/minecraft/class_1703 net/minecraft/screen/ScreenHandler COMMENT COMMENT
This drops the cursor stack by default. Subclasses that have slots not backed
COMMENT by a persistent inventory should call {@link #dropInventory} to drop the stacks.
+ ARG 1 player
METHOD method_7596 addListener (Lnet/minecraft/class_1712;)V
COMMENT Adds {@code listener} to the screen handler.
COMMENT
diff --git a/mappings/net/minecraft/server/command/GameRuleCommand.mapping b/mappings/net/minecraft/server/command/GameRuleCommand.mapping
index 782b2711a9..653a8bfeeb 100644
--- a/mappings/net/minecraft/server/command/GameRuleCommand.mapping
+++ b/mappings/net/minecraft/server/command/GameRuleCommand.mapping
@@ -1,6 +1,7 @@
CLASS net/minecraft/class_3065 net/minecraft/server/command/GameRuleCommand
METHOD method_13392 register (Lcom/mojang/brigadier/CommandDispatcher;Lnet/minecraft/class_7157;)V
ARG 0 dispatcher
+ ARG 1 commandRegistryAccess
METHOD method_13393 (Lnet/minecraft/class_2168;)Z
ARG 0 source
METHOD method_13394 executeSet (Lcom/mojang/brigadier/context/CommandContext;Lnet/minecraft/class_1928$class_4313;)I
diff --git a/mappings/net/minecraft/server/network/ServerPlayerEntity.mapping b/mappings/net/minecraft/server/network/ServerPlayerEntity.mapping
index 206c7f6967..b3c0eda90a 100644
--- a/mappings/net/minecraft/server/network/ServerPlayerEntity.mapping
+++ b/mappings/net/minecraft/server/network/ServerPlayerEntity.mapping
@@ -59,6 +59,9 @@ CLASS net/minecraft/class_3222 net/minecraft/server/network/ServerPlayerEntity
FIELD field_51875 movement Lnet/minecraft/class_243;
FIELD field_52358 particlesMode Lnet/minecraft/class_4066;
FIELD field_54048 playerInput Lnet/minecraft/class_10185;
+ FIELD field_54208 enderPearls Ljava/util/Set;
+ FIELD field_54209 ENDER_PEARLS_KEY Ljava/lang/String;
+ FIELD field_54210 ENDER_PEARLS_DIMENSION_KEY Ljava/lang/String;
METHOD