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_300797_)
     
  • 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_300392_)
     
    private static <T> com.mojang.serialization.Dynamic<T>
    fixArrowTag(com.mojang.serialization.Dynamic<T> p_298539_)
     
    private static <T> com.mojang.serialization.Dynamic<T>
    fixMooshroomTag(com.mojang.serialization.Dynamic<T> p_298884_)
     
    private static <T> com.mojang.serialization.Dynamic<T>
    fixSuspiciousStewTag(com.mojang.serialization.Dynamic<T> p_301166_)
     
    private static <T> Optional<com.mojang.serialization.Dynamic<T>>
    getAndConvertMobEffectId(com.mojang.serialization.Dynamic<T> p_300040_, String p_300405_)
     
    private com.mojang.datafixers.TypeRewriteRule
     
    protected com.mojang.datafixers.TypeRewriteRule
     
    private com.mojang.datafixers.TypeRewriteRule
     
    private static <T> com.mojang.serialization.Dynamic<T>
    renameField(com.mojang.serialization.Dynamic<T> p_299698_, String p_297388_, String p_300782_)
     
    private static <T> com.mojang.serialization.Dynamic<T>
    replaceField(com.mojang.serialization.Dynamic<T> p_297407_, String p_298935_, String p_297534_, Optional<com.mojang.serialization.Dynamic<T>> p_299072_)
     
    private static <T> com.mojang.serialization.Dynamic<T>
    setFieldIfPresent(com.mojang.serialization.Dynamic<T> p_298128_, String p_297327_, Optional<com.mojang.serialization.Dynamic<T>> p_297377_)
     
    private static com.mojang.serialization.Dynamic<?>
    updateLivingEntityTag(com.mojang.serialization.Dynamic<?> p_299534_)
     
    private static <T> com.mojang.serialization.Dynamic<T>
    updateMobEffectIdField(com.mojang.serialization.Dynamic<T> p_299189_, String p_301147_, com.mojang.serialization.Dynamic<T> p_297288_, String p_297619_)
     
    private static <T> com.mojang.serialization.Dynamic<T>
    updateMobEffectIdField(com.mojang.serialization.Dynamic<T> p_299905_, String p_299399_, String p_301048_)
     
    private static <T> com.mojang.serialization.Dynamic<T>
    updateMobEffectInstance(com.mojang.serialization.Dynamic<T> p_297886_)
     
    private static <T> com.mojang.serialization.Dynamic<T>
    updateMobEffectInstanceList(com.mojang.serialization.Dynamic<T> p_298694_, String p_298177_, String p_300921_)
     
    private com.mojang.datafixers.Typed<?>
    updateNamedChoice(com.mojang.datafixers.Typed<?> p_299605_, com.mojang.datafixers.DSL.TypeReference p_299152_, String p_300042_, Function<com.mojang.serialization.Dynamic<?>,com.mojang.serialization.Dynamic<?>> p_300498_)
     
    private static <T> com.mojang.serialization.Dynamic<T>
    updateSuspiciousStewEntry(com.mojang.serialization.Dynamic<T> p_297367_)
     
    private static <T> com.mojang.serialization.Dynamic<T>
    updateSuspiciousStewEntry(com.mojang.serialization.Dynamic<T> p_299220_, com.mojang.serialization.Dynamic<T> p_300010_)
     

    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_300797_)
  • Method Details

    • getAndConvertMobEffectId

      private static <T> Optional<com.mojang.serialization.Dynamic<T>> getAndConvertMobEffectId(com.mojang.serialization.Dynamic<T> p_300040_, String p_300405_)
    • setFieldIfPresent

      private static <T> com.mojang.serialization.Dynamic<T> setFieldIfPresent(com.mojang.serialization.Dynamic<T> p_298128_, String p_297327_, Optional<com.mojang.serialization.Dynamic<T>> p_297377_)
    • replaceField

      private static <T> com.mojang.serialization.Dynamic<T> replaceField(com.mojang.serialization.Dynamic<T> p_297407_, String p_298935_, String p_297534_, Optional<com.mojang.serialization.Dynamic<T>> p_299072_)
    • renameField

      private static <T> com.mojang.serialization.Dynamic<T> renameField(com.mojang.serialization.Dynamic<T> p_299698_, String p_297388_, String p_300782_)
    • updateMobEffectIdField

      private static <T> com.mojang.serialization.Dynamic<T> updateMobEffectIdField(com.mojang.serialization.Dynamic<T> p_299189_, String p_301147_, com.mojang.serialization.Dynamic<T> p_297288_, String p_297619_)
    • updateMobEffectIdField

      private static <T> com.mojang.serialization.Dynamic<T> updateMobEffectIdField(com.mojang.serialization.Dynamic<T> p_299905_, String p_299399_, String p_301048_)
    • updateMobEffectInstance

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

      private static <T> com.mojang.serialization.Dynamic<T> updateMobEffectInstanceList(com.mojang.serialization.Dynamic<T> p_298694_, String p_298177_, String p_300921_)
    • updateSuspiciousStewEntry

      private static <T> com.mojang.serialization.Dynamic<T> updateSuspiciousStewEntry(com.mojang.serialization.Dynamic<T> p_299220_, com.mojang.serialization.Dynamic<T> p_300010_)
    • updateSuspiciousStewEntry

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

      private com.mojang.datafixers.Typed<?> updateNamedChoice(com.mojang.datafixers.Typed<?> p_299605_, com.mojang.datafixers.DSL.TypeReference p_299152_, String p_300042_, Function<com.mojang.serialization.Dynamic<?>,com.mojang.serialization.Dynamic<?>> p_300498_)
    • blockEntityFixer

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

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

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

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

      private static com.mojang.serialization.Dynamic<?> updateLivingEntityTag(com.mojang.serialization.Dynamic<?> p_299534_)
    • 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_301166_)
    • itemStackFixer

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

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