Skip to content

Commit

Permalink
A few uuid fixes mapped (FabricMC#1201)
Browse files Browse the repository at this point in the history
Now enigma takes too long decompiling some classes. Weird...

Signed-off-by: liach <[email protected]>

Co-authored-by: liach <[email protected]>
  • Loading branch information
liach and liach authored Mar 19, 2020
1 parent 1cf8995 commit 9357e4e
Show file tree
Hide file tree
Showing 6 changed files with 88 additions and 0 deletions.
35 changes: 35 additions & 0 deletions mappings/net/minecraft/datafixer/fix/AbstractUuidFix.mapping
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
CLASS net/minecraft/class_4958 net/minecraft/datafixer/fix/AbstractUuidFix
FIELD field_23120 LOGGER Lorg/apache/logging/log4j/Logger;
FIELD field_23121 typeReference Lcom/mojang/datafixers/DSL$TypeReference;
METHOD <init> (Lcom/mojang/datafixers/schemas/Schema;Lcom/mojang/datafixers/DSL$TypeReference;)V
ARG 1 outputSchema
ARG 2 typeReference
METHOD method_26002 createArrayFromCompoundUuid (Lcom/mojang/datafixers/Dynamic;)Ljava/util/Optional;
ARG 0 uuidCompound
METHOD method_26003 createArray (Lcom/mojang/datafixers/Dynamic;JJ)Ljava/util/Optional;
ARG 0 parent
ARG 1 mostBits
ARG 3 leastBits
METHOD method_26005 createArrayFromStringUuid (Lcom/mojang/datafixers/Dynamic;Ljava/lang/String;)Ljava/util/Optional;
ARG 0 parent
ARG 1 key
METHOD method_26006 updateStringUuid (Lcom/mojang/datafixers/Dynamic;Ljava/lang/String;Ljava/lang/String;)Ljava/util/Optional;
ARG 0 parent
ARG 1 oldKey
ARG 2 newKey
METHOD method_26009 updateTyped (Lcom/mojang/datafixers/Typed;Ljava/lang/String;Ljava/util/function/Function;)Lcom/mojang/datafixers/Typed;
ARG 1 typed
ARG 2 name
ARG 3 updater
METHOD method_26011 updateCompoundUuid (Lcom/mojang/datafixers/Dynamic;Ljava/lang/String;Ljava/lang/String;)Ljava/util/Optional;
ARG 0 parent
ARG 1 oldKey
ARG 2 newKey
METHOD method_26013 updateRegularMostLeast (Lcom/mojang/datafixers/Dynamic;Ljava/lang/String;Ljava/lang/String;)Ljava/util/Optional;
ARG 0 parent
ARG 1 oldKey
ARG 2 newKey
METHOD method_26014 createArrayFromMostLeastTags (Lcom/mojang/datafixers/Dynamic;Ljava/lang/String;Ljava/lang/String;)Ljava/util/Optional;
ARG 0 parent
ARG 1 mostBitsKey
ARG 2 leastBitsKey
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
CLASS net/minecraft/class_4959 net/minecraft/datafixer/fix/BlockEntityUuidFix
METHOD <init> (Lcom/mojang/datafixers/schemas/Schema;)V
ARG 1 outputSchema
METHOD method_26017 updateSkull (Lcom/mojang/datafixers/Dynamic;)Lcom/mojang/datafixers/Dynamic;
ARG 1 root
METHOD method_26018 updateConduit (Lcom/mojang/datafixers/Dynamic;)Lcom/mojang/datafixers/Dynamic;
ARG 1 root
37 changes: 37 additions & 0 deletions mappings/net/minecraft/datafixer/fix/EntityUuidFix.mapping
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
CLASS net/minecraft/class_4960 net/minecraft/datafixer/fix/EntityUuidFix
FIELD field_23122 RIDEABLE_TAMEABLES Ljava/util/Set;
FIELD field_23123 TAMEABLE_PETS Ljava/util/Set;
FIELD field_23124 BREEDABLES Ljava/util/Set;
FIELD field_23125 LEASHABLES Ljava/util/Set;
FIELD field_23126 OTHER_LIVINGS Ljava/util/Set;
FIELD field_23127 PROJECTILES Ljava/util/Set;
METHOD <init> (Lcom/mojang/datafixers/schemas/Schema;)V
ARG 1 outputSchema
METHOD method_26022 updateAngryAtMemory (Lcom/mojang/datafixers/Dynamic;)Lcom/mojang/datafixers/Dynamic;
ARG 1 dynamic
METHOD method_26024 updateEvokerFangs (Lcom/mojang/datafixers/Dynamic;)Lcom/mojang/datafixers/Dynamic;
ARG 1 root
METHOD method_26026 updateZombieVillager (Lcom/mojang/datafixers/Dynamic;)Lcom/mojang/datafixers/Dynamic;
ARG 1 root
METHOD method_26028 updateAreaEffectCloud (Lcom/mojang/datafixers/Dynamic;)Lcom/mojang/datafixers/Dynamic;
ARG 1 root
METHOD method_26030 updateShulkerBullet (Lcom/mojang/datafixers/Dynamic;)Lcom/mojang/datafixers/Dynamic;
ARG 1 root
METHOD method_26031 updateItemEntity (Lcom/mojang/datafixers/Dynamic;)Lcom/mojang/datafixers/Dynamic;
ARG 1 root
METHOD method_26032 updateFox (Lcom/mojang/datafixers/Dynamic;)Lcom/mojang/datafixers/Dynamic;
ARG 1 root
METHOD method_26033 updateZombifiedPiglin (Lcom/mojang/datafixers/Dynamic;)Lcom/mojang/datafixers/Dynamic;
ARG 1 root
METHOD method_26034 updateTameable (Lcom/mojang/datafixers/Dynamic;)Lcom/mojang/datafixers/Dynamic;
ARG 1 root
METHOD method_26035 updateBreedable (Lcom/mojang/datafixers/Dynamic;)Lcom/mojang/datafixers/Dynamic;
ARG 1 root
METHOD method_26036 updateLeashable (Lcom/mojang/datafixers/Dynamic;)Lcom/mojang/datafixers/Dynamic;
ARG 1 root
METHOD method_26037 updateLiving (Lcom/mojang/datafixers/Dynamic;)Lcom/mojang/datafixers/Dynamic;
ARG 1 root
METHOD method_26038 updateProjectile (Lcom/mojang/datafixers/Dynamic;)Lcom/mojang/datafixers/Dynamic;
ARG 1 root
METHOD method_26039 updateSelfUuid (Lcom/mojang/datafixers/Dynamic;)Lcom/mojang/datafixers/Dynamic;
ARG 1 root
3 changes: 3 additions & 0 deletions mappings/net/minecraft/datafixer/fix/ItemStackUuidFix.mapping
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
CLASS net/minecraft/class_4961 net/minecraft/datafixer/fix/ItemStackUuidFix
METHOD <init> (Lcom/mojang/datafixers/schemas/Schema;)V
ARG 1 outputSchema
3 changes: 3 additions & 0 deletions mappings/net/minecraft/datafixer/fix/PlayerUuidFix.mapping
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
CLASS net/minecraft/class_4963 net/minecraft/datafixer/fix/PlayerUuidFix
METHOD <init> (Lcom/mojang/datafixers/schemas/Schema;)V
ARG 1 outputSchema
3 changes: 3 additions & 0 deletions mappings/net/minecraft/datafixer/fix/WorldUuidFix.mapping
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
CLASS net/minecraft/class_4962 net/minecraft/datafixer/fix/WorldUuidFix
METHOD <init> (Lcom/mojang/datafixers/schemas/Schema;)V
ARG 1 outputSchema

0 comments on commit 9357e4e

Please sign in to comment.