Package net.minecraft.util.datafix.fixes
Class LegacyHoverEventFix
java.lang.Object
com.mojang.datafixers.DataFix
net.minecraft.util.datafix.fixes.LegacyHoverEventFix
public class LegacyHoverEventFix
extends com.mojang.datafixers.DataFix
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate <C,H extends com.mojang.datafixers.util.Pair<String, ?>>
com.mojang.datafixers.TypeRewriteRulecreateFixer(com.mojang.datafixers.types.Type<C> componentType, com.mojang.datafixers.types.Type<H> hoverEventType) private static <H> HcreatePlaceholderHover(com.mojang.datafixers.types.Type<H> type, com.mojang.serialization.Dynamic<?> data) private <H> HfixHoverEvent(com.mojang.datafixers.types.Type<H> type, String action, com.mojang.serialization.Dynamic<?> data) private static <H> HfixShowTextHover(com.mojang.datafixers.types.Type<H> type, com.mojang.serialization.Dynamic<?> data) protected com.mojang.datafixers.TypeRewriteRulemakeRule()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
-
Constructor Details
-
LegacyHoverEventFix
public LegacyHoverEventFix(com.mojang.datafixers.schemas.Schema outputSchema)
-
-
Method Details
-
makeRule
protected com.mojang.datafixers.TypeRewriteRule makeRule()- Specified by:
makeRulein classcom.mojang.datafixers.DataFix
-
createFixer
private <C,H extends com.mojang.datafixers.util.Pair<String, com.mojang.datafixers.TypeRewriteRule createFixer?>> (com.mojang.datafixers.types.Type<C> componentType, com.mojang.datafixers.types.Type<H> hoverEventType) -
fixHoverEvent
private <H> H fixHoverEvent(com.mojang.datafixers.types.Type<H> type, String action, com.mojang.serialization.Dynamic<?> data) -
fixShowTextHover
private static <H> H fixShowTextHover(com.mojang.datafixers.types.Type<H> type, com.mojang.serialization.Dynamic<?> data) -
createPlaceholderHover
private static <H> H createPlaceholderHover(com.mojang.datafixers.types.Type<H> type, com.mojang.serialization.Dynamic<?> data)
-