Class EntityCustomNameToComponentFix
java.lang.Object
com.mojang.datafixers.DataFix
net.minecraft.util.datafix.fixes.EntityCustomNameToComponentFix
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static <T> Dynamic<T> fixCustomName(DynamicOps<T> ops, String customName, String id) private static <T> Typed<?> fixEntity(Typed<?> entity, Type<?> newEntityType, OpticFinder<String> idF, OpticFinder<String> customNameF, Type<T> newCustomNameType) makeRule()Methods inherited from class DataFix
checked, convertUnchecked, fixTypeEverywhere, fixTypeEverywhere, fixTypeEverywhere, fixTypeEverywhere, fixTypeEverywhereTyped, fixTypeEverywhereTyped, fixTypeEverywhereTyped, fixTypeEverywhereTyped, getInputSchema, getOutputSchema, getRule, getVersionKey, onFail, writeAndRead, writeFixAndRead
-
Constructor Details
-
EntityCustomNameToComponentFix
-
-
Method Details
-
makeRule
-
fixEntity
private static <T> Typed<?> fixEntity(Typed<?> entity, Type<?> newEntityType, OpticFinder<String> idF, OpticFinder<String> customNameF, Type<T> newCustomNameType) -
fixCustomName
-