Class MobEffectIdFix

java.lang.Object
com.mojang.datafixers.DataFix
net.minecraft.util.datafix.fixes.MobEffectIdFix

public class MobEffectIdFix extends com.mojang.datafixers.DataFix
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final it.unimi.dsi.fastutil.ints.Int2ObjectMap<String>
     
    private static final Set<String>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    MobEffectIdFix(com.mojang.datafixers.schemas.Schema p_298197_)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private com.mojang.datafixers.TypeRewriteRule
     
    private com.mojang.datafixers.TypeRewriteRule
     
    private static <T> com.mojang.serialization.Dynamic<T>
    fixAreaEffectCloudTag(com.mojang.serialization.Dynamic<T> p_298539_)
     
    private static <T> com.mojang.serialization.Dynamic<T>
    fixArrowTag(com.mojang.serialization.Dynamic<T> p_299026_)
     
    private static <T> com.mojang.serialization.Dynamic<T>
    fixMooshroomTag(com.mojang.serialization.Dynamic<T> p_298470_)
     
    private static <T> com.mojang.serialization.Dynamic<T>
    fixSuspiciousStewTag(com.mojang.serialization.Dynamic<T> p_298546_)
     
    private static <T> Optional<com.mojang.serialization.Dynamic<T>>
    getAndConvertMobEffectId(com.mojang.serialization.Dynamic<T> p_299296_, String p_298445_)
     
    private com.mojang.datafixers.TypeRewriteRule
     
    protected com.mojang.datafixers.TypeRewriteRule
     
    private com.mojang.datafixers.TypeRewriteRule
     
    private static <T> com.mojang.serialization.Dynamic<T>
    setFieldIfPresent(com.mojang.serialization.Dynamic<T> dynamic, String s, Optional<com.mojang.serialization.Dynamic<T>> optional)
     
    private static com.mojang.serialization.Dynamic<?>
    updateLivingEntityTag(com.mojang.serialization.Dynamic<?> p_299145_)
     
    private static <T> com.mojang.serialization.Dynamic<T>
    updateMobEffectIdField(com.mojang.serialization.Dynamic<T> p_298948_, String p_299234_, com.mojang.serialization.Dynamic<T> p_298832_, String p_298487_)
     
    private static <T> com.mojang.serialization.Dynamic<T>
    updateMobEffectIdField(com.mojang.serialization.Dynamic<T> p_299001_, String p_298420_, String p_299179_)
     
    private static <T> com.mojang.serialization.Dynamic<T>
    updateMobEffectIdFieldConsideringForge(com.mojang.serialization.Dynamic<T> p_298948_, String p_299234_, com.mojang.serialization.Dynamic<T> p_298832_, String p_298487_, String forgeFieldId)
     
    private static <T> com.mojang.serialization.Dynamic<T>
    updateMobEffectInstance(com.mojang.serialization.Dynamic<T> p_298320_)
     
    private static <T> com.mojang.serialization.Dynamic<T>
    updateMobEffectInstanceList(com.mojang.serialization.Dynamic<T> p_299048_, String p_298254_, String p_298643_)
     
    private com.mojang.datafixers.Typed<?>
    updateNamedChoice(com.mojang.datafixers.Typed<?> p_298304_, com.mojang.datafixers.DSL.TypeReference p_298928_, String p_298718_, Function<com.mojang.serialization.Dynamic<?>,com.mojang.serialization.Dynamic<?>> p_298931_)
     
    private static <T> com.mojang.serialization.Dynamic<T>
    updateSuspiciousStewEntry(com.mojang.serialization.Dynamic<T> p_298873_)
     
    private static <T> com.mojang.serialization.Dynamic<T>
    updateSuspiciousStewEntry(com.mojang.serialization.Dynamic<T> p_298902_, com.mojang.serialization.Dynamic<T> p_299113_)
     

    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

    • ID_MAP

      private static final it.unimi.dsi.fastutil.ints.Int2ObjectMap<String> ID_MAP
    • MOB_EFFECT_INSTANCE_CARRIER_ITEMS

      private static final Set<String> MOB_EFFECT_INSTANCE_CARRIER_ITEMS
  • Constructor Details

    • MobEffectIdFix

      public MobEffectIdFix(com.mojang.datafixers.schemas.Schema p_298197_)
  • Method Details

    • getAndConvertMobEffectId

      private static <T> Optional<com.mojang.serialization.Dynamic<T>> getAndConvertMobEffectId(com.mojang.serialization.Dynamic<T> p_299296_, String p_298445_)
    • updateMobEffectIdField

      private static <T> com.mojang.serialization.Dynamic<T> updateMobEffectIdField(com.mojang.serialization.Dynamic<T> p_298948_, String p_299234_, com.mojang.serialization.Dynamic<T> p_298832_, String p_298487_)
    • updateMobEffectIdField

      private static <T> com.mojang.serialization.Dynamic<T> updateMobEffectIdField(com.mojang.serialization.Dynamic<T> p_299001_, String p_298420_, String p_299179_)
    • updateMobEffectIdFieldConsideringForge

      private static <T> com.mojang.serialization.Dynamic<T> updateMobEffectIdFieldConsideringForge(com.mojang.serialization.Dynamic<T> p_298948_, String p_299234_, com.mojang.serialization.Dynamic<T> p_298832_, String p_298487_, String forgeFieldId)
    • setFieldIfPresent

      private static <T> com.mojang.serialization.Dynamic<T> setFieldIfPresent(com.mojang.serialization.Dynamic<T> dynamic, String s, Optional<com.mojang.serialization.Dynamic<T>> optional)
    • updateMobEffectInstance

      private static <T> com.mojang.serialization.Dynamic<T> updateMobEffectInstance(com.mojang.serialization.Dynamic<T> p_298320_)
    • updateMobEffectInstanceList

      private static <T> com.mojang.serialization.Dynamic<T> updateMobEffectInstanceList(com.mojang.serialization.Dynamic<T> p_299048_, String p_298254_, String p_298643_)
    • updateSuspiciousStewEntry

      private static <T> com.mojang.serialization.Dynamic<T> updateSuspiciousStewEntry(com.mojang.serialization.Dynamic<T> p_298902_, com.mojang.serialization.Dynamic<T> p_299113_)
    • updateSuspiciousStewEntry

      private static <T> com.mojang.serialization.Dynamic<T> updateSuspiciousStewEntry(com.mojang.serialization.Dynamic<T> p_298873_)
    • updateNamedChoice

      private com.mojang.datafixers.Typed<?> updateNamedChoice(com.mojang.datafixers.Typed<?> p_298304_, com.mojang.datafixers.DSL.TypeReference p_298928_, String p_298718_, Function<com.mojang.serialization.Dynamic<?>,com.mojang.serialization.Dynamic<?>> p_298931_)
    • blockEntityFixer

      private com.mojang.datafixers.TypeRewriteRule blockEntityFixer()
    • fixMooshroomTag

      private static <T> com.mojang.serialization.Dynamic<T> fixMooshroomTag(com.mojang.serialization.Dynamic<T> p_298470_)
    • fixArrowTag

      private static <T> com.mojang.serialization.Dynamic<T> fixArrowTag(com.mojang.serialization.Dynamic<T> p_299026_)
    • fixAreaEffectCloudTag

      private static <T> com.mojang.serialization.Dynamic<T> fixAreaEffectCloudTag(com.mojang.serialization.Dynamic<T> p_298539_)
    • updateLivingEntityTag

      private static com.mojang.serialization.Dynamic<?> updateLivingEntityTag(com.mojang.serialization.Dynamic<?> p_299145_)
    • entityFixer

      private com.mojang.datafixers.TypeRewriteRule entityFixer()
    • playerFixer

      private com.mojang.datafixers.TypeRewriteRule playerFixer()
    • fixSuspiciousStewTag

      private static <T> com.mojang.serialization.Dynamic<T> fixSuspiciousStewTag(com.mojang.serialization.Dynamic<T> p_298546_)
    • itemStackFixer

      private com.mojang.datafixers.TypeRewriteRule itemStackFixer()
    • makeRule

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