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_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
makeRule()
private com.mojang.datafixers.TypeRewriteRule
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
-
Field Details
-
ID_MAP
-
MOB_EFFECT_INSTANCE_CARRIER_ITEMS
-
-
Constructor Details
-
MobEffectIdFix
public MobEffectIdFix(com.mojang.datafixers.schemas.Schema p_300797_)
-
-
Method Details
-
getAndConvertMobEffectId
-
updateMobEffectIdField
-
updateMobEffectIdField
-
updateMobEffectInstance
private static <T> com.mojang.serialization.Dynamic<T> updateMobEffectInstance(com.mojang.serialization.Dynamic<T> p_297886_) -
updateMobEffectInstanceList
-
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
-
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 classcom.mojang.datafixers.DataFix
-