Class StatusEffectFix

java.lang.Object
com.mojang.datafixers.DataFix
net.minecraft.datafixer.fix.StatusEffectFix

public class StatusEffectFix extends com.mojang.datafixers.DataFix
Mappings:
Namespace Name
official axx
intermediary net/minecraft/class_8744
named net/minecraft/datafixer/fix/StatusEffectFix
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final Int2ObjectMap<String>
     
    private static final Set<String>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    StatusEffectFix(com.mojang.datafixers.schemas.Schema outputSchema)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private static com.mojang.serialization.Dynamic<?>
    fixActiveEffectsKey(com.mojang.serialization.Dynamic<?> dynamic)
     
    private static <T> com.mojang.serialization.Dynamic<T>
    fixCustomPotionEffectsKey(com.mojang.serialization.Dynamic<T> dynamic)
     
    private static <T> com.mojang.serialization.Dynamic<T>
    fixEffect(com.mojang.serialization.Dynamic<T> effectDynamic)
     
    private static <T> com.mojang.serialization.Dynamic<T>
    fixEffectList(com.mojang.serialization.Dynamic<T> dynamic, String oldEffectListKey, String newEffectListKey)
     
    private static <T> com.mojang.serialization.Dynamic<T>
    fixEffectsKey(com.mojang.serialization.Dynamic<T> dynamic)
     
    private static <T> com.mojang.serialization.Dynamic<T>
    fixStewEffectsKey(com.mojang.serialization.Dynamic<T> dynamic)
     
    private com.mojang.datafixers.TypeRewriteRule
     
    private com.mojang.datafixers.TypeRewriteRule
     
    private com.mojang.datafixers.TypeRewriteRule
     
    private com.mojang.datafixers.TypeRewriteRule
     
    protected com.mojang.datafixers.TypeRewriteRule
     
    private com.mojang.datafixers.Typed<?>
    method_53081(com.mojang.datafixers.Typed<?> typed, com.mojang.datafixers.DSL.TypeReference typeReference, String string, Function<com.mojang.serialization.Dynamic<?>,com.mojang.serialization.Dynamic<?>> function)
     
    private static <T> com.mojang.serialization.Dynamic<T>
    method_53083(com.mojang.serialization.Dynamic<T> dynamic, com.mojang.serialization.Dynamic<T> dynamic2)
     
    private static <T> com.mojang.serialization.Dynamic<T>
    method_53095(com.mojang.serialization.Dynamic<T> dynamic)
     
    private static <T> com.mojang.serialization.Dynamic<T>
    method_53106(com.mojang.serialization.Dynamic<T> dynamic)
     
    private static <T> com.mojang.serialization.Dynamic<T>
    renameKey(com.mojang.serialization.Dynamic<T> dynamic, String oldKey, String newKey)
     
    private static <T> com.mojang.serialization.Dynamic<T>
    renameKey(com.mojang.serialization.Dynamic<T> dynamic, String oldKey, String newKey, Optional<com.mojang.serialization.Dynamic<T>> value)
     
    private static <T> com.mojang.serialization.Dynamic<T>
    renameKeyAndUpdateId(com.mojang.serialization.Dynamic<T> dynamic, String oldKey, com.mojang.serialization.Dynamic<T> dynamic2, String newKey)
     
    private static <T> com.mojang.serialization.Dynamic<T>
    renameKeyAndUpdateId(com.mojang.serialization.Dynamic<T> dynamic, String oldKey, String newKey)
     
    private static <T> com.mojang.serialization.Dynamic<T>
    setOptionalValue(com.mojang.serialization.Dynamic<T> dynamic, String key, Optional<com.mojang.serialization.Dynamic<T>> value)
     
    private static <T> Optional<com.mojang.serialization.Dynamic<T>>
    updateId(com.mojang.serialization.Dynamic<T> dynamic, String idKey)
     

    Methods inherited from class com.mojang.datafixers.DataFix

    checked, convertUnchecked, fixTypeEverywhere, fixTypeEverywhere, fixTypeEverywhere, fixTypeEverywhere, fixTypeEverywhereTyped, fixTypeEverywhereTyped, fixTypeEverywhereTyped, fixTypeEverywhereTyped, getInputSchema, getOutputSchema, getRule, getVersionKey, onFail, writeAndRead, writeFixAndRead

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • OLD_TO_NEW_IDS

      private static final Int2ObjectMap<String> OLD_TO_NEW_IDS
      Mappings:
      Namespace Name Mixin selector
      official a Laxx;a:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
      intermediary field_45725 Lnet/minecraft/class_8744;field_45725:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
      named OLD_TO_NEW_IDS Lnet/minecraft/datafixer/fix/StatusEffectFix;OLD_TO_NEW_IDS:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
    • POTION_ITEM_IDS

      private static final Set<String> POTION_ITEM_IDS
      Mappings:
      Namespace Name Mixin selector
      official b Laxx;b:Ljava/util/Set;
      intermediary field_45726 Lnet/minecraft/class_8744;field_45726:Ljava/util/Set;
      named POTION_ITEM_IDS Lnet/minecraft/datafixer/fix/StatusEffectFix;POTION_ITEM_IDS:Ljava/util/Set;
  • Constructor Details

    • StatusEffectFix

      public StatusEffectFix(com.mojang.datafixers.schemas.Schema outputSchema)
      Mappings:
      Namespace Name Mixin selector
      official <init> Laxx;<init>(Lcom/mojang/datafixers/schemas/Schema;)V
      intermediary <init> Lnet/minecraft/class_8744;<init>(Lcom/mojang/datafixers/schemas/Schema;)V
      named <init> Lnet/minecraft/datafixer/fix/StatusEffectFix;<init>(Lcom/mojang/datafixers/schemas/Schema;)V
  • Method Details

    • updateId

      private static <T> Optional<com.mojang.serialization.Dynamic<T>> updateId(com.mojang.serialization.Dynamic<T> dynamic, String idKey)
      Mappings:
      Namespace Name Mixin selector
      official a Laxx;a(Lcom/mojang/serialization/Dynamic;Ljava/lang/String;)Ljava/util/Optional;
      intermediary method_53084 Lnet/minecraft/class_8744;method_53084(Lcom/mojang/serialization/Dynamic;Ljava/lang/String;)Ljava/util/Optional;
      named updateId Lnet/minecraft/datafixer/fix/StatusEffectFix;updateId(Lcom/mojang/serialization/Dynamic;Ljava/lang/String;)Ljava/util/Optional;
    • setOptionalValue

      private static <T> com.mojang.serialization.Dynamic<T> setOptionalValue(com.mojang.serialization.Dynamic<T> dynamic, String key, Optional<com.mojang.serialization.Dynamic<T>> value)
      Mappings:
      Namespace Name Mixin selector
      official a Laxx;a(Lcom/mojang/serialization/Dynamic;Ljava/lang/String;Ljava/util/Optional;)Lcom/mojang/serialization/Dynamic;
      intermediary method_53088 Lnet/minecraft/class_8744;method_53088(Lcom/mojang/serialization/Dynamic;Ljava/lang/String;Ljava/util/Optional;)Lcom/mojang/serialization/Dynamic;
      named setOptionalValue Lnet/minecraft/datafixer/fix/StatusEffectFix;setOptionalValue(Lcom/mojang/serialization/Dynamic;Ljava/lang/String;Ljava/util/Optional;)Lcom/mojang/serialization/Dynamic;
    • renameKey

      private static <T> com.mojang.serialization.Dynamic<T> renameKey(com.mojang.serialization.Dynamic<T> dynamic, String oldKey, String newKey, Optional<com.mojang.serialization.Dynamic<T>> value)
      Mappings:
      Namespace Name Mixin selector
      official a Laxx;a(Lcom/mojang/serialization/Dynamic;Ljava/lang/String;Ljava/lang/String;Ljava/util/Optional;)Lcom/mojang/serialization/Dynamic;
      intermediary method_53087 Lnet/minecraft/class_8744;method_53087(Lcom/mojang/serialization/Dynamic;Ljava/lang/String;Ljava/lang/String;Ljava/util/Optional;)Lcom/mojang/serialization/Dynamic;
      named renameKey Lnet/minecraft/datafixer/fix/StatusEffectFix;renameKey(Lcom/mojang/serialization/Dynamic;Ljava/lang/String;Ljava/lang/String;Ljava/util/Optional;)Lcom/mojang/serialization/Dynamic;
    • renameKey

      private static <T> com.mojang.serialization.Dynamic<T> renameKey(com.mojang.serialization.Dynamic<T> dynamic, String oldKey, String newKey)
      Mappings:
      Namespace Name Mixin selector
      official a Laxx;a(Lcom/mojang/serialization/Dynamic;Ljava/lang/String;Ljava/lang/String;)Lcom/mojang/serialization/Dynamic;
      intermediary method_53086 Lnet/minecraft/class_8744;method_53086(Lcom/mojang/serialization/Dynamic;Ljava/lang/String;Ljava/lang/String;)Lcom/mojang/serialization/Dynamic;
      named renameKey Lnet/minecraft/datafixer/fix/StatusEffectFix;renameKey(Lcom/mojang/serialization/Dynamic;Ljava/lang/String;Ljava/lang/String;)Lcom/mojang/serialization/Dynamic;
    • renameKeyAndUpdateId

      private static <T> com.mojang.serialization.Dynamic<T> renameKeyAndUpdateId(com.mojang.serialization.Dynamic<T> dynamic, String oldKey, com.mojang.serialization.Dynamic<T> dynamic2, String newKey)
      Mappings:
      Namespace Name Mixin selector
      official a Laxx;a(Lcom/mojang/serialization/Dynamic;Ljava/lang/String;Lcom/mojang/serialization/Dynamic;Ljava/lang/String;)Lcom/mojang/serialization/Dynamic;
      intermediary method_53085 Lnet/minecraft/class_8744;method_53085(Lcom/mojang/serialization/Dynamic;Ljava/lang/String;Lcom/mojang/serialization/Dynamic;Ljava/lang/String;)Lcom/mojang/serialization/Dynamic;
      named renameKeyAndUpdateId Lnet/minecraft/datafixer/fix/StatusEffectFix;renameKeyAndUpdateId(Lcom/mojang/serialization/Dynamic;Ljava/lang/String;Lcom/mojang/serialization/Dynamic;Ljava/lang/String;)Lcom/mojang/serialization/Dynamic;
    • renameKeyAndUpdateId

      private static <T> com.mojang.serialization.Dynamic<T> renameKeyAndUpdateId(com.mojang.serialization.Dynamic<T> dynamic, String oldKey, String newKey)
      Mappings:
      Namespace Name Mixin selector
      official b Laxx;b(Lcom/mojang/serialization/Dynamic;Ljava/lang/String;Ljava/lang/String;)Lcom/mojang/serialization/Dynamic;
      intermediary method_53096 Lnet/minecraft/class_8744;method_53096(Lcom/mojang/serialization/Dynamic;Ljava/lang/String;Ljava/lang/String;)Lcom/mojang/serialization/Dynamic;
      named renameKeyAndUpdateId Lnet/minecraft/datafixer/fix/StatusEffectFix;renameKeyAndUpdateId(Lcom/mojang/serialization/Dynamic;Ljava/lang/String;Ljava/lang/String;)Lcom/mojang/serialization/Dynamic;
    • fixEffect

      private static <T> com.mojang.serialization.Dynamic<T> fixEffect(com.mojang.serialization.Dynamic<T> effectDynamic)
      Mappings:
      Namespace Name Mixin selector
      official a Laxx;a(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
      intermediary method_53082 Lnet/minecraft/class_8744;method_53082(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
      named fixEffect Lnet/minecraft/datafixer/fix/StatusEffectFix;fixEffect(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
    • fixEffectList

      private static <T> com.mojang.serialization.Dynamic<T> fixEffectList(com.mojang.serialization.Dynamic<T> dynamic, String oldEffectListKey, String newEffectListKey)
      Mappings:
      Namespace Name Mixin selector
      official c Laxx;c(Lcom/mojang/serialization/Dynamic;Ljava/lang/String;Ljava/lang/String;)Lcom/mojang/serialization/Dynamic;
      intermediary method_53101 Lnet/minecraft/class_8744;method_53101(Lcom/mojang/serialization/Dynamic;Ljava/lang/String;Ljava/lang/String;)Lcom/mojang/serialization/Dynamic;
      named fixEffectList Lnet/minecraft/datafixer/fix/StatusEffectFix;fixEffectList(Lcom/mojang/serialization/Dynamic;Ljava/lang/String;Ljava/lang/String;)Lcom/mojang/serialization/Dynamic;
    • method_53083

      private static <T> com.mojang.serialization.Dynamic<T> method_53083(com.mojang.serialization.Dynamic<T> dynamic, com.mojang.serialization.Dynamic<T> dynamic2)
      Mappings:
      Namespace Name Mixin selector
      official a Laxx;a(Lcom/mojang/serialization/Dynamic;Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
      intermediary method_53083 Lnet/minecraft/class_8744;method_53083(Lcom/mojang/serialization/Dynamic;Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
      named method_53083 Lnet/minecraft/datafixer/fix/StatusEffectFix;method_53083(Lcom/mojang/serialization/Dynamic;Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
    • method_53095

      private static <T> com.mojang.serialization.Dynamic<T> method_53095(com.mojang.serialization.Dynamic<T> dynamic)
      Mappings:
      Namespace Name Mixin selector
      official b Laxx;b(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
      intermediary method_53095 Lnet/minecraft/class_8744;method_53095(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
      named method_53095 Lnet/minecraft/datafixer/fix/StatusEffectFix;method_53095(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
    • method_53081

      private com.mojang.datafixers.Typed<?> method_53081(com.mojang.datafixers.Typed<?> typed, com.mojang.datafixers.DSL.TypeReference typeReference, String string, Function<com.mojang.serialization.Dynamic<?>,com.mojang.serialization.Dynamic<?>> function)
      Mappings:
      Namespace Name Mixin selector
      official a Laxx;a(Lcom/mojang/datafixers/Typed;Lcom/mojang/datafixers/DSL$TypeReference;Ljava/lang/String;Ljava/util/function/Function;)Lcom/mojang/datafixers/Typed;
      intermediary method_53081 Lnet/minecraft/class_8744;method_53081(Lcom/mojang/datafixers/Typed;Lcom/mojang/datafixers/DSL$TypeReference;Ljava/lang/String;Ljava/util/function/Function;)Lcom/mojang/datafixers/Typed;
      named method_53081 Lnet/minecraft/datafixer/fix/StatusEffectFix;method_53081(Lcom/mojang/datafixers/Typed;Lcom/mojang/datafixers/DSL$TypeReference;Ljava/lang/String;Ljava/util/function/Function;)Lcom/mojang/datafixers/Typed;
    • makeBlockEntitiesRule

      private com.mojang.datafixers.TypeRewriteRule makeBlockEntitiesRule()
      Mappings:
      Namespace Name Mixin selector
      official a Laxx;a()Lcom/mojang/datafixers/TypeRewriteRule;
      intermediary method_53078 Lnet/minecraft/class_8744;method_53078()Lcom/mojang/datafixers/TypeRewriteRule;
      named makeBlockEntitiesRule Lnet/minecraft/datafixer/fix/StatusEffectFix;makeBlockEntitiesRule()Lcom/mojang/datafixers/TypeRewriteRule;
    • fixStewEffectsKey

      private static <T> com.mojang.serialization.Dynamic<T> fixStewEffectsKey(com.mojang.serialization.Dynamic<T> dynamic)
      Mappings:
      Namespace Name Mixin selector
      official c Laxx;c(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
      intermediary method_53100 Lnet/minecraft/class_8744;method_53100(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
      named fixStewEffectsKey Lnet/minecraft/datafixer/fix/StatusEffectFix;fixStewEffectsKey(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
    • fixCustomPotionEffectsKey

      private static <T> com.mojang.serialization.Dynamic<T> fixCustomPotionEffectsKey(com.mojang.serialization.Dynamic<T> dynamic)
      Mappings:
      Namespace Name Mixin selector
      official d Laxx;d(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
      intermediary method_53103 Lnet/minecraft/class_8744;method_53103(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
      named fixCustomPotionEffectsKey Lnet/minecraft/datafixer/fix/StatusEffectFix;fixCustomPotionEffectsKey(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
    • fixEffectsKey

      private static <T> com.mojang.serialization.Dynamic<T> fixEffectsKey(com.mojang.serialization.Dynamic<T> dynamic)
      Mappings:
      Namespace Name Mixin selector
      official e Laxx;e(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
      intermediary method_53104 Lnet/minecraft/class_8744;method_53104(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
      named fixEffectsKey Lnet/minecraft/datafixer/fix/StatusEffectFix;fixEffectsKey(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
    • fixActiveEffectsKey

      private static com.mojang.serialization.Dynamic<?> fixActiveEffectsKey(com.mojang.serialization.Dynamic<?> dynamic)
      Mappings:
      Namespace Name Mixin selector
      official f Laxx;f(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
      intermediary method_53105 Lnet/minecraft/class_8744;method_53105(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
      named fixActiveEffectsKey Lnet/minecraft/datafixer/fix/StatusEffectFix;fixActiveEffectsKey(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
    • makeEntitiesRule

      private com.mojang.datafixers.TypeRewriteRule makeEntitiesRule()
      Mappings:
      Namespace Name Mixin selector
      official b Laxx;b()Lcom/mojang/datafixers/TypeRewriteRule;
      intermediary method_53093 Lnet/minecraft/class_8744;method_53093()Lcom/mojang/datafixers/TypeRewriteRule;
      named makeEntitiesRule Lnet/minecraft/datafixer/fix/StatusEffectFix;makeEntitiesRule()Lcom/mojang/datafixers/TypeRewriteRule;
    • makePlayersRule

      private com.mojang.datafixers.TypeRewriteRule makePlayersRule()
      Mappings:
      Namespace Name Mixin selector
      official c Laxx;c()Lcom/mojang/datafixers/TypeRewriteRule;
      intermediary method_53713 Lnet/minecraft/class_8744;method_53713()Lcom/mojang/datafixers/TypeRewriteRule;
      named makePlayersRule Lnet/minecraft/datafixer/fix/StatusEffectFix;makePlayersRule()Lcom/mojang/datafixers/TypeRewriteRule;
    • method_53106

      private static <T> com.mojang.serialization.Dynamic<T> method_53106(com.mojang.serialization.Dynamic<T> dynamic)
      Mappings:
      Namespace Name Mixin selector
      official g Laxx;g(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
      intermediary method_53106 Lnet/minecraft/class_8744;method_53106(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
      named method_53106 Lnet/minecraft/datafixer/fix/StatusEffectFix;method_53106(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
    • makeItemStacksRule

      private com.mojang.datafixers.TypeRewriteRule makeItemStacksRule()
      Mappings:
      Namespace Name Mixin selector
      official d Laxx;d()Lcom/mojang/datafixers/TypeRewriteRule;
      intermediary method_53098 Lnet/minecraft/class_8744;method_53098()Lcom/mojang/datafixers/TypeRewriteRule;
      named makeItemStacksRule Lnet/minecraft/datafixer/fix/StatusEffectFix;makeItemStacksRule()Lcom/mojang/datafixers/TypeRewriteRule;
    • makeRule

      protected com.mojang.datafixers.TypeRewriteRule makeRule()
      Specified by:
      makeRule in class com.mojang.datafixers.DataFix