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_331673_)
  • Method Details

    • fixItemStack

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

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

      private static com.mojang.serialization.Dynamic<?> fixDisplay(ItemStackComponentizationFix.ItemStackData p_331302_, com.mojang.serialization.Dynamic<?> p_331703_, int p_331793_)
    • fixBlockEntityTag

      private static <T> com.mojang.serialization.Dynamic<T> fixBlockEntityTag(ItemStackComponentizationFix.ItemStackData p_330721_, com.mojang.serialization.Dynamic<T> p_331427_, String p_331421_)
    • fixEnchantments

      private static void fixEnchantments(ItemStackComponentizationFix.ItemStackData p_331903_, com.mojang.serialization.Dynamic<?> p_330744_, String p_331654_, String p_331804_, boolean p_331955_)
    • parseEnchantment

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

      private static void fixAdventureModeChecks(ItemStackComponentizationFix.ItemStackData p_332034_, com.mojang.serialization.Dynamic<?> p_332091_, int p_331042_)
    • fixBlockStatePredicates

      private static void fixBlockStatePredicates(ItemStackComponentizationFix.ItemStackData p_331487_, com.mojang.serialization.Dynamic<?> p_331061_, String p_330321_, String p_332110_, boolean p_332166_)
    • fixBlockStatePredicate

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

      private static void fixAttributeModifiers(ItemStackComponentizationFix.ItemStackData p_330771_, com.mojang.serialization.Dynamic<?> p_331387_, int p_330887_)
    • fixAttributeModifier

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

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

      private static String fixMapDecorationType(int p_330596_)
    • fixPotionContents

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

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

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

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

      private static com.mojang.serialization.Dynamic<?> createFilteredText(com.mojang.serialization.Dynamic<?> p_331589_, String p_330423_, Optional<String> p_330385_)
    • fixBucketedMobData

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

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

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

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

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

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

      private static boolean isValidPlayerName(String p_332666_)
    • fixProfileProperties

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

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