Class ItemStackCustomNameToOverrideComponentFix

java.lang.Object
com.mojang.datafixers.DataFix
net.minecraft.util.datafix.fixes.ItemStackCustomNameToOverrideComponentFix

public class ItemStackCustomNameToOverrideComponentFix extends com.mojang.datafixers.DataFix
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final Set<String>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    ItemStackCustomNameToOverrideComponentFix(com.mojang.datafixers.schemas.Schema p_338575_)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private static <T> com.mojang.serialization.Dynamic<T>
    fixBanner(com.mojang.serialization.Dynamic<T> p_338538_)
     
    private static <T> com.mojang.serialization.Dynamic<T>
    fixCustomName(com.mojang.serialization.Dynamic<T> p_338290_, Predicate<String> p_338596_)
     
    private static <T> com.mojang.serialization.Dynamic<T>
    fixMap(com.mojang.serialization.Dynamic<T> p_338642_)
     
    final 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
  • Field Details

    • MAP_NAMES

      private static final Set<String> MAP_NAMES
  • Constructor Details

    • ItemStackCustomNameToOverrideComponentFix

      public ItemStackCustomNameToOverrideComponentFix(com.mojang.datafixers.schemas.Schema p_338575_)
  • Method Details

    • makeRule

      public final com.mojang.datafixers.TypeRewriteRule makeRule()
      Specified by:
      makeRule in class com.mojang.datafixers.DataFix
    • fixMap

      private static <T> com.mojang.serialization.Dynamic<T> fixMap(com.mojang.serialization.Dynamic<T> p_338642_)
    • fixBanner

      private static <T> com.mojang.serialization.Dynamic<T> fixBanner(com.mojang.serialization.Dynamic<T> p_338538_)
    • fixCustomName

      private static <T> com.mojang.serialization.Dynamic<T> fixCustomName(com.mojang.serialization.Dynamic<T> p_338290_, Predicate<String> p_338596_)