Package net.minecraft.util.datafix.fixes
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
Modifier and TypeFieldDescriptionprivate static final it.unimi.dsi.fastutil.ints.Int2ObjectMap
<String> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate 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
makeRule()
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
-
Field Details
-
ID_MAP
-
MOB_EFFECT_INSTANCE_CARRIER_ITEMS
-
-
Constructor Details
-
MobEffectIdFix
public MobEffectIdFix(com.mojang.datafixers.schemas.Schema p_298197_)
-
-
Method Details
-
getAndConvertMobEffectId
-
updateMobEffectIdField
-
updateMobEffectIdField
-
updateMobEffectIdFieldConsideringForge
-
setFieldIfPresent
-
updateMobEffectInstance
private static <T> com.mojang.serialization.Dynamic<T> updateMobEffectInstance(com.mojang.serialization.Dynamic<T> p_298320_) -
updateMobEffectInstanceList
-
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
-
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 classcom.mojang.datafixers.DataFix
-