From 9d48cbcbd2dd19d569c9b68f012b88b94abe4159 Mon Sep 17 00:00:00 2001 From: martmists Date: Sun, 23 Feb 2020 00:05:59 +0100 Subject: [PATCH] Map LeavesFix (#1127) * LeavesFix%field_5686 -> logBlocks * LeavesFix%field_5688 -> leafMap * LeavesFix$ListFixer#method_5082(3) -> computeFlags * LeavesFix$class_1192%field_5690 -> leafStates * LeavesFix$ListFixer#computeFlags(3)[1 = ] -> leafBlockName * LeavesFix$ListFixer#computeFlags(3)[2 = ] -> persistent * LeavesFix$ListFixer%data -> properties * LeavesFix$ListFixer%field_5696 -> leafStateMap * LeavesFix$class_1192#method_5072(4) -> createLeafProperties * LeavesFix$class_1192%field_5689 -> leafIndices * LeavesFix$class_1192%field_5691 -> logIndices * LeavesFix$class_1192#method_5068(1) -> isLog * LeavesFix$class_1192#method_5071(1) -> isLeaf * LeavesFix$class_1192#method_5065(1) -> getDistanceToLog * LeavesFix$class_1192#method_5070(3) -> computeLeafStates * LeavesFix$ListFixer%leafStateMap -> blockStateMap * LeavesFix$ListFixer#method_5074(1) -> getFixableBlockStates * LeavesFix$ListFixer#getFixableBlockStates(1) -> computeFixableBlockStates * LeavesFix$ListFixer#method_5079(0) -> isFixed * LeavesFix$ListFixer#method_5075(1) -> needsFix * Update LeavesFix.mapping * Make requested changes --- .../minecraft/datafixer/fix/LeavesFix.mapping | 20 ++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/mappings/net/minecraft/datafixer/fix/LeavesFix.mapping b/mappings/net/minecraft/datafixer/fix/LeavesFix.mapping index 0091a4cd80..9150009acb 100644 --- a/mappings/net/minecraft/datafixer/fix/LeavesFix.mapping +++ b/mappings/net/minecraft/datafixer/fix/LeavesFix.mapping @@ -1,4 +1,22 @@ CLASS net/minecraft/class_1191 net/minecraft/datafixer/fix/LeavesFix + FIELD field_5686 LOGS_MAP Ljava/util/Set; + FIELD field_5688 LEAVES_MAP Lit/unimi/dsi/fastutil/objects/Object2IntMap; + CLASS class_1192 LeavesLogFixer + FIELD field_5689 leafIndices Lit/unimi/dsi/fastutil/ints/IntSet; + FIELD field_5690 leafStates Lit/unimi/dsi/fastutil/ints/Int2IntMap; + FIELD field_5691 logIndices Lit/unimi/dsi/fastutil/ints/IntSet; + METHOD method_5065 getDistanceToLog (I)I + METHOD method_5068 isLog (I)Z + METHOD method_5070 computeLeafStates (III)V + METHOD method_5071 isLeaf (I)Z + METHOD method_5072 createLeafProperties (Lcom/mojang/datafixers/Dynamic;Ljava/lang/String;ZI)Lcom/mojang/datafixers/Dynamic; CLASS class_1193 ListFixer - FIELD field_5692 data Ljava/util/List; + FIELD field_5692 properties Ljava/util/List; + FIELD field_5696 blockStateMap Lnet/minecraft/class_3508; + METHOD method_5074 computeFixableBlockStates (Lcom/mojang/datafixers/Dynamic;)V + METHOD method_5075 needsFix (I)I METHOD method_5076 needsFix ()Z + METHOD method_5079 isFixed ()Z + METHOD method_5082 computeFlags (Ljava/lang/String;ZI)I + ARG 1 leafBlockName + ARG 2 persistent