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
named net/minecraft/datafixer/fix/StatusEffectFix
intermediary net/minecraft/class_8744
official bfk
  • 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>
    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> 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
      named OLD_TO_NEW_IDS Lnet/minecraft/datafixer/fix/StatusEffectFix;OLD_TO_NEW_IDS:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
      intermediary field_45725 Lnet/minecraft/class_8744;field_45725:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
      official a Lbfk;a:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
    • POTION_ITEM_IDS

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

    • StatusEffectFix

      public StatusEffectFix(com.mojang.datafixers.schemas.Schema outputSchema)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/datafixer/fix/StatusEffectFix;<init>(Lcom/mojang/datafixers/schemas/Schema;)V
      intermediary <init> Lnet/minecraft/class_8744;<init>(Lcom/mojang/datafixers/schemas/Schema;)V
      official <init> Lbfk;<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
      named updateId Lnet/minecraft/datafixer/fix/StatusEffectFix;updateId(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;
      official a Lbfk;a(Lcom/mojang/serialization/Dynamic;Ljava/lang/String;)Ljava/util/Optional;
    • 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
      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;
      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;
      official a Lbfk;a(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
      named renameKeyAndUpdateId Lnet/minecraft/datafixer/fix/StatusEffectFix;renameKeyAndUpdateId(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;
      official a Lbfk;a(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
      named fixEffect Lnet/minecraft/datafixer/fix/StatusEffectFix;fixEffect(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;
      official a Lbfk;a(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
      named fixEffectList Lnet/minecraft/datafixer/fix/StatusEffectFix;fixEffectList(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;
      official b Lbfk;b(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
      named method_53083 Lnet/minecraft/datafixer/fix/StatusEffectFix;method_53083(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;
      official a Lbfk;a(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
      named method_53095 Lnet/minecraft/datafixer/fix/StatusEffectFix;method_53095(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;
      official b Lbfk;b(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
      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;
      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;
      official a Lbfk;a(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
      named makeBlockEntitiesRule Lnet/minecraft/datafixer/fix/StatusEffectFix;makeBlockEntitiesRule()Lcom/mojang/datafixers/TypeRewriteRule;
      intermediary method_53078 Lnet/minecraft/class_8744;method_53078()Lcom/mojang/datafixers/TypeRewriteRule;
      official a Lbfk;a()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
      named fixStewEffectsKey Lnet/minecraft/datafixer/fix/StatusEffectFix;fixStewEffectsKey(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;
      official c Lbfk;c(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
      named fixCustomPotionEffectsKey Lnet/minecraft/datafixer/fix/StatusEffectFix;fixCustomPotionEffectsKey(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;
      official d Lbfk;d(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
      named fixEffectsKey Lnet/minecraft/datafixer/fix/StatusEffectFix;fixEffectsKey(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;
      official e Lbfk;e(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
      named fixActiveEffectsKey Lnet/minecraft/datafixer/fix/StatusEffectFix;fixActiveEffectsKey(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;
      official f Lbfk;f(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
    • makeEntitiesRule

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

      private com.mojang.datafixers.TypeRewriteRule makePlayersRule()
      Mappings:
      Namespace Name Mixin selector
      named makePlayersRule Lnet/minecraft/datafixer/fix/StatusEffectFix;makePlayersRule()Lcom/mojang/datafixers/TypeRewriteRule;
      intermediary method_53713 Lnet/minecraft/class_8744;method_53713()Lcom/mojang/datafixers/TypeRewriteRule;
      official c Lbfk;c()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
      named method_53106 Lnet/minecraft/datafixer/fix/StatusEffectFix;method_53106(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;
      official g Lbfk;g(Lcom/mojang/serialization/Dynamic;)Lcom/mojang/serialization/Dynamic;
    • makeItemStacksRule

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

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