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_328761_)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private static <T> com.mojang.serialization.Dynamic<T>
    fixBanner(com.mojang.serialization.Dynamic<T> p_328946_)
     
    private static <T> com.mojang.serialization.Dynamic<T>
    fixCustomName(com.mojang.serialization.Dynamic<T> p_335170_, Predicate<String> p_334171_)
     
    private static <T> com.mojang.serialization.Dynamic<T>
    fixMap(com.mojang.serialization.Dynamic<T> p_331719_)
     
    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_328761_)
  • 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_331719_)
    • fixBanner

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

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