From 90d97a00af9ccee7f5b42f37392393f3329e753a Mon Sep 17 00:00:00 2001 From: apple502j <33279053+apple502j@users.noreply.github.com> Date: Sat, 24 Apr 2021 18:14:41 +0900 Subject: [PATCH] Map tree decorator (#2345) --- .../treedecorator/AlterGroundTreeDecorator.mapping | 12 ++++++++++++ .../gen/treedecorator/BeehiveTreeDecorator.mapping | 2 ++ .../treedecorator/CocoaBeansTreeDecorator.mapping | 4 ++++ .../treedecorator/LeavesVineTreeDecorator.mapping | 6 ++++++ .../world/gen/treedecorator/TreeDecorator.mapping | 9 ++++++++- .../gen/treedecorator/TrunkVineTreeDecorator.mapping | 2 ++ 6 files changed, 34 insertions(+), 1 deletion(-) diff --git a/mappings/net/minecraft/world/gen/treedecorator/AlterGroundTreeDecorator.mapping b/mappings/net/minecraft/world/gen/treedecorator/AlterGroundTreeDecorator.mapping index 597846213a..a91d9e3c1d 100644 --- a/mappings/net/minecraft/world/gen/treedecorator/AlterGroundTreeDecorator.mapping +++ b/mappings/net/minecraft/world/gen/treedecorator/AlterGroundTreeDecorator.mapping @@ -5,5 +5,17 @@ CLASS net/minecraft/class_4658 net/minecraft/world/gen/treedecorator/AlterGround ARG 1 provider METHOD method_23460 (ILnet/minecraft/class_2338;)Z ARG 1 pos + METHOD method_23461 (Lnet/minecraft/class_3746;Ljava/util/function/BiConsumer;Ljava/util/Random;Lnet/minecraft/class_2338;)V + ARG 4 pos METHOD method_23462 setArea (Lnet/minecraft/class_3746;Ljava/util/function/BiConsumer;Ljava/util/Random;Lnet/minecraft/class_2338;)V + ARG 1 world + ARG 2 replacer + ARG 3 random + ARG 4 pos METHOD method_23463 setColumn (Lnet/minecraft/class_3746;Ljava/util/function/BiConsumer;Ljava/util/Random;Lnet/minecraft/class_2338;)V + ARG 1 world + ARG 2 replacer + ARG 3 random + ARG 4 pos + METHOD method_28889 (Lnet/minecraft/class_4658;)Lnet/minecraft/class_4651; + ARG 0 decorator diff --git a/mappings/net/minecraft/world/gen/treedecorator/BeehiveTreeDecorator.mapping b/mappings/net/minecraft/world/gen/treedecorator/BeehiveTreeDecorator.mapping index 8c7b51d2e9..b5f1841e8e 100644 --- a/mappings/net/minecraft/world/gen/treedecorator/BeehiveTreeDecorator.mapping +++ b/mappings/net/minecraft/world/gen/treedecorator/BeehiveTreeDecorator.mapping @@ -7,3 +7,5 @@ CLASS net/minecraft/class_4659 net/minecraft/world/gen/treedecorator/BeehiveTree ARG 1 pos METHOD method_28890 (Lnet/minecraft/class_4659;)Ljava/lang/Float; ARG 0 decorator + METHOD method_35373 (Ljava/util/Random;Lnet/minecraft/class_4482;)V + ARG 1 blockEntity diff --git a/mappings/net/minecraft/world/gen/treedecorator/CocoaBeansTreeDecorator.mapping b/mappings/net/minecraft/world/gen/treedecorator/CocoaBeansTreeDecorator.mapping index 6c6d051da5..acc6bc21ec 100644 --- a/mappings/net/minecraft/world/gen/treedecorator/CocoaBeansTreeDecorator.mapping +++ b/mappings/net/minecraft/world/gen/treedecorator/CocoaBeansTreeDecorator.mapping @@ -5,3 +5,7 @@ CLASS net/minecraft/class_4660 net/minecraft/world/gen/treedecorator/CocoaBeansT ARG 1 probability METHOD method_23465 (ILnet/minecraft/class_2338;)Z ARG 1 pos + METHOD method_23466 (Ljava/util/Random;Lnet/minecraft/class_3746;Ljava/util/function/BiConsumer;Lnet/minecraft/class_2338;)V + ARG 3 pos + METHOD method_28891 (Lnet/minecraft/class_4660;)Ljava/lang/Float; + ARG 0 decorator diff --git a/mappings/net/minecraft/world/gen/treedecorator/LeavesVineTreeDecorator.mapping b/mappings/net/minecraft/world/gen/treedecorator/LeavesVineTreeDecorator.mapping index 153173d66d..0ac7122430 100644 --- a/mappings/net/minecraft/world/gen/treedecorator/LeavesVineTreeDecorator.mapping +++ b/mappings/net/minecraft/world/gen/treedecorator/LeavesVineTreeDecorator.mapping @@ -3,3 +3,9 @@ CLASS net/minecraft/class_4661 net/minecraft/world/gen/treedecorator/LeavesVineT FIELD field_24961 INSTANCE Lnet/minecraft/class_4661; METHOD method_23467 placeVines (Lnet/minecraft/class_3746;Lnet/minecraft/class_2338;Lnet/minecraft/class_2746;Ljava/util/function/BiConsumer;)V COMMENT Places a vine at a given position and then up to 4 more vines going downwards. + ARG 0 world + ARG 1 pos + ARG 2 facing + ARG 3 replacer + METHOD method_23468 (Ljava/util/Random;Lnet/minecraft/class_3746;Ljava/util/function/BiConsumer;Lnet/minecraft/class_2338;)V + ARG 3 pos diff --git a/mappings/net/minecraft/world/gen/treedecorator/TreeDecorator.mapping b/mappings/net/minecraft/world/gen/treedecorator/TreeDecorator.mapping index 3593a81137..559513918d 100644 --- a/mappings/net/minecraft/world/gen/treedecorator/TreeDecorator.mapping +++ b/mappings/net/minecraft/world/gen/treedecorator/TreeDecorator.mapping @@ -2,6 +2,13 @@ CLASS net/minecraft/class_4662 net/minecraft/world/gen/treedecorator/TreeDecorat COMMENT Tree decorators can add additional blocks to trees, such as vines or beehives. FIELD field_24962 TYPE_CODEC Lcom/mojang/serialization/Codec; METHOD method_23469 generate (Lnet/minecraft/class_3746;Ljava/util/function/BiConsumer;Ljava/util/Random;Ljava/util/List;Ljava/util/List;)V - ARG 4 leavesPositions + ARG 1 world + ARG 2 replacer + ARG 3 random + ARG 4 logPositions + ARG 5 leavesPositions METHOD method_23471 placeVine (Ljava/util/function/BiConsumer;Lnet/minecraft/class_2338;Lnet/minecraft/class_2746;)V + ARG 0 replacer + ARG 1 pos + ARG 2 facing METHOD method_28893 getType ()Lnet/minecraft/class_4663; diff --git a/mappings/net/minecraft/world/gen/treedecorator/TrunkVineTreeDecorator.mapping b/mappings/net/minecraft/world/gen/treedecorator/TrunkVineTreeDecorator.mapping index 7dcb345f24..338f3071f8 100644 --- a/mappings/net/minecraft/world/gen/treedecorator/TrunkVineTreeDecorator.mapping +++ b/mappings/net/minecraft/world/gen/treedecorator/TrunkVineTreeDecorator.mapping @@ -1,3 +1,5 @@ CLASS net/minecraft/class_4664 net/minecraft/world/gen/treedecorator/TrunkVineTreeDecorator FIELD field_24964 CODEC Lcom/mojang/serialization/Codec; FIELD field_24965 INSTANCE Lnet/minecraft/class_4664; + METHOD method_23474 (Ljava/util/Random;Lnet/minecraft/class_3746;Ljava/util/function/BiConsumer;Lnet/minecraft/class_2338;)V + ARG 3 pos