Class MobEffectIdFix
java.lang.Object
com.mojang.datafixers.DataFix
net.minecraft.util.datafix.fixes.MobEffectIdFix
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final it.unimi.dsi.fastutil.ints.Int2ObjectMap<String> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate TypeRewriteRuleprivate TypeRewriteRuleprivate static <T> Dynamic<T> fixAreaEffectCloudTag(Dynamic<T> data) private static <T> Dynamic<T> fixArrowTag(Dynamic<T> data) private static <T> Dynamic<T> fixMooshroomTag(Dynamic<T> entityTag) private static <T> Dynamic<T> fixSuspiciousStewTag(Dynamic<T> tag) getAndConvertMobEffectId(Dynamic<T> obj, String fieldName) private TypeRewriteRuleprotected TypeRewriteRulemakeRule()private TypeRewriteRuleprivate static <T> Dynamic<T> setFieldIfPresent(Dynamic<T> dynamic, String s, Optional<Dynamic<T>> optional) private static Dynamic<?> updateLivingEntityTag(Dynamic<?> data) private static <T> Dynamic<T> updateMobEffectIdField(Dynamic<T> input, String oldFieldName, Dynamic<T> output, String newFieldName) private static <T> Dynamic<T> updateMobEffectIdField(Dynamic<T> input, String oldFieldName, String newFieldName) private static <T> Dynamic<T> updateMobEffectIdFieldConsideringForge(Dynamic<T> input, String oldFieldName, Dynamic<T> output, String newFieldName, String forgeFieldId) private static <T> Dynamic<T> updateMobEffectInstance(Dynamic<T> input) private static <T> Dynamic<T> updateMobEffectInstanceList(Dynamic<T> input, String oldField, String newField) private Typed<?> updateNamedChoice(Typed<?> input, DSL.TypeReference typeReference, String name, Function<Dynamic<?>, Dynamic<?>> function) private static <T> Dynamic<T> updateSuspiciousStewEntry(Dynamic<T> input) private static <T> Dynamic<T> updateSuspiciousStewEntry(Dynamic<T> input, Dynamic<T> output) Methods inherited from class 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
-
-
Method Details
-
getAndConvertMobEffectId
-
updateMobEffectIdField
-
updateMobEffectIdField
-
updateMobEffectIdFieldConsideringForge
-
setFieldIfPresent
-
updateMobEffectInstance
-
updateMobEffectInstanceList
-
updateSuspiciousStewEntry
-
updateSuspiciousStewEntry
-
updateNamedChoice
-
blockEntityFixer
-
fixMooshroomTag
-
fixArrowTag
-
fixAreaEffectCloudTag
-
updateLivingEntityTag
-
entityFixer
-
playerFixer
-
fixSuspiciousStewTag
-
itemStackFixer
-
makeRule
-