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
    Constructor
    Description
    LegacyHoverEventFix(com.mojang.datafixers.schemas.Schema outputSchema)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private <C, H extends com.mojang.datafixers.util.Pair<String,?>>
    com.mojang.datafixers.TypeRewriteRule
    createFixer(com.mojang.datafixers.types.Type<C> rawTextComponentType, com.mojang.datafixers.types.Type<H> hoverEventType)
     
    private static <H> H
    createPlaceholderHover(com.mojang.datafixers.types.Type<H> hoverEventType, com.mojang.serialization.Dynamic<?> oldHoverEvent)
     
    private <H> H
    fixHoverEvent(com.mojang.datafixers.types.Type<H> hoverEventType, String action, com.mojang.serialization.Dynamic<?> oldHoverEvent)
     
    private static <H> H
    fixShowTextHover(com.mojang.datafixers.types.Type<H> hoverEventType, com.mojang.serialization.Dynamic<?> oldHoverEvent)
     
    protected com.mojang.datafixers.TypeRewriteRule
     

    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

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • LegacyHoverEventFix

      public LegacyHoverEventFix(com.mojang.datafixers.schemas.Schema outputSchema)
  • Method Details

    • makeRule

      protected com.mojang.datafixers.TypeRewriteRule makeRule()
      Specified by:
      makeRule in class com.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> rawTextComponentType, com.mojang.datafixers.types.Type<H> hoverEventType)
    • fixHoverEvent

      private <H> H fixHoverEvent(com.mojang.datafixers.types.Type<H> hoverEventType, String action, com.mojang.serialization.Dynamic<?> oldHoverEvent)
    • fixShowTextHover

      private static <H> H fixShowTextHover(com.mojang.datafixers.types.Type<H> hoverEventType, com.mojang.serialization.Dynamic<?> oldHoverEvent)
    • createPlaceholderHover

      private static <H> H createPlaceholderHover(com.mojang.datafixers.types.Type<H> hoverEventType, com.mojang.serialization.Dynamic<?> oldHoverEvent)