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 pOutputSchema)
     
  • 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> pComponentType, com.mojang.datafixers.types.Type<H> pHoverEventType)
     
    private static <H> H
    createPlaceholderHover(com.mojang.datafixers.types.Type<H> pType, com.mojang.serialization.Dynamic<?> pData)
     
    private <H> H
    fixHoverEvent(com.mojang.datafixers.types.Type<H> pType, String pAction, com.mojang.serialization.Dynamic<?> pData)
     
    private static <H> H
    fixShowTextHover(com.mojang.datafixers.types.Type<H> pType, com.mojang.serialization.Dynamic<?> pData)
     
    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 java.lang.Object

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

    • LegacyHoverEventFix

      public LegacyHoverEventFix(com.mojang.datafixers.schemas.Schema pOutputSchema)
  • 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> pComponentType, com.mojang.datafixers.types.Type<H> pHoverEventType)
    • fixHoverEvent

      private <H> H fixHoverEvent(com.mojang.datafixers.types.Type<H> pType, String pAction, com.mojang.serialization.Dynamic<?> pData)
    • fixShowTextHover

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

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