Class ItemStackComponentizationFix

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

public class ItemStackComponentizationFix extends com.mojang.datafixers.DataFix
  • Field Details

    • HIDE_ENCHANTMENTS

      private static final int HIDE_ENCHANTMENTS
      See Also:
    • HIDE_MODIFIERS

      private static final int HIDE_MODIFIERS
      See Also:
    • HIDE_UNBREAKABLE

      private static final int HIDE_UNBREAKABLE
      See Also:
    • HIDE_CAN_DESTROY

      private static final int HIDE_CAN_DESTROY
      See Also:
    • HIDE_CAN_PLACE

      private static final int HIDE_CAN_PLACE
      See Also:
    • HIDE_ADDITIONAL

      private static final int HIDE_ADDITIONAL
      See Also:
    • HIDE_DYE

      private static final int HIDE_DYE
      See Also:
    • HIDE_UPGRADES

      private static final int HIDE_UPGRADES
      See Also:
    • POTION_HOLDER_IDS

      private static final Set<String> POTION_HOLDER_IDS
    • BUCKETED_MOB_IDS

      private static final Set<String> BUCKETED_MOB_IDS
    • BUCKETED_MOB_TAGS

      private static final List<String> BUCKETED_MOB_TAGS
    • BOOLEAN_BLOCK_STATE_PROPERTIES

      private static final Set<String> BOOLEAN_BLOCK_STATE_PROPERTIES
    • PROPERTY_SPLITTER

      private static final com.google.common.base.Splitter PROPERTY_SPLITTER
  • Constructor Details

    • ItemStackComponentizationFix

      public ItemStackComponentizationFix(com.mojang.datafixers.schemas.Schema p_331666_)
  • Method Details

    • fixItemStack

      private static void fixItemStack(ItemStackComponentizationFix.ItemStackData p_335726_, com.mojang.serialization.Dynamic<?> p_329007_)
    • fixBlockStateTag

      private static com.mojang.serialization.Dynamic<?> fixBlockStateTag(com.mojang.serialization.Dynamic<?> p_329060_)
    • fixDisplay

      private static com.mojang.serialization.Dynamic<?> fixDisplay(ItemStackComponentizationFix.ItemStackData p_333136_, com.mojang.serialization.Dynamic<?> p_329974_, int p_330088_)
    • fixBlockEntityTag

      private static <T> com.mojang.serialization.Dynamic<T> fixBlockEntityTag(ItemStackComponentizationFix.ItemStackData p_334120_, com.mojang.serialization.Dynamic<T> p_332622_, String p_334133_)
    • fixEnchantments

      private static void fixEnchantments(ItemStackComponentizationFix.ItemStackData p_332552_, com.mojang.serialization.Dynamic<?> p_328849_, String p_333260_, String p_334340_, boolean p_329498_)
    • parseEnchantment

      private static Optional<com.mojang.datafixers.util.Pair<String,Integer>> parseEnchantment(com.mojang.serialization.Dynamic<?> p_328387_)
    • fixAdventureModeChecks

      private static void fixAdventureModeChecks(ItemStackComponentizationFix.ItemStackData p_328938_, com.mojang.serialization.Dynamic<?> p_336252_, int p_331810_)
    • fixBlockStatePredicates

      private static void fixBlockStatePredicates(ItemStackComponentizationFix.ItemStackData p_331433_, com.mojang.serialization.Dynamic<?> p_332377_, String p_332474_, String p_333138_, boolean p_334219_)
    • fixBlockStatePredicate

      private static com.mojang.serialization.Dynamic<?> fixBlockStatePredicate(com.mojang.serialization.Dynamic<?> p_330250_, String p_335482_)
    • fixAttributeModifiers

      private static void fixAttributeModifiers(ItemStackComponentizationFix.ItemStackData p_329869_, com.mojang.serialization.Dynamic<?> p_332943_, int p_330062_)
    • fixAttributeModifier

      private static com.mojang.serialization.Dynamic<?> fixAttributeModifier(com.mojang.serialization.Dynamic<?> p_330280_)
    • fixMapDecoration

      private static com.mojang.datafixers.util.Pair<com.mojang.serialization.Dynamic<?>,com.mojang.serialization.Dynamic<?>> fixMapDecoration(com.mojang.serialization.Dynamic<?> p_329859_)
    • fixMapDecorationType

      private static String fixMapDecorationType(int p_328497_)
    • fixPotionContents

      private static void fixPotionContents(ItemStackComponentizationFix.ItemStackData p_329173_, com.mojang.serialization.Dynamic<?> p_331866_)
    • fixWritableBook

      private static void fixWritableBook(ItemStackComponentizationFix.ItemStackData p_332414_, com.mojang.serialization.Dynamic<?> p_329764_)
    • fixWrittenBook

      private static void fixWrittenBook(ItemStackComponentizationFix.ItemStackData p_333609_, com.mojang.serialization.Dynamic<?> p_330312_)
    • fixBookPages

      @Nullable private static com.mojang.serialization.Dynamic<?> fixBookPages(ItemStackComponentizationFix.ItemStackData p_335763_, com.mojang.serialization.Dynamic<?> p_328532_)
    • createFilteredText

      private static com.mojang.serialization.Dynamic<?> createFilteredText(com.mojang.serialization.Dynamic<?> p_330363_, String p_328510_, Optional<String> p_328222_)
    • fixBucketedMobData

      private static void fixBucketedMobData(ItemStackComponentizationFix.ItemStackData p_328428_, com.mojang.serialization.Dynamic<?> p_327719_)
    • fixLodestoneTracker

      private static void fixLodestoneTracker(ItemStackComponentizationFix.ItemStackData p_330486_, com.mojang.serialization.Dynamic<?> p_329466_)
    • fixFireworkStar

      private static void fixFireworkStar(ItemStackComponentizationFix.ItemStackData p_334817_)
    • fixFireworkRocket

      private static void fixFireworkRocket(ItemStackComponentizationFix.ItemStackData p_329939_)
    • fixFireworkExplosion

      private static com.mojang.serialization.Dynamic<?> fixFireworkExplosion(com.mojang.serialization.Dynamic<?> p_327955_)
    • fixProfile

      public static com.mojang.serialization.Dynamic<?> fixProfile(com.mojang.serialization.Dynamic<?> p_331244_)
    • isValidPlayerName

      private static boolean isValidPlayerName(String p_332205_)
    • fixProfileProperties

      @Nullable private static com.mojang.serialization.Dynamic<?> fixProfileProperties(com.mojang.serialization.OptionalDynamic<?> p_329629_)
    • makeRule

      protected com.mojang.datafixers.TypeRewriteRule makeRule()
      Specified by:
      makeRule in class com.mojang.datafixers.DataFix