Package net.minecraft.util.datafix.fixes
Class ItemStackComponentizationFix
java.lang.Object
com.mojang.datafixers.DataFix
net.minecraft.util.datafix.fixes.ItemStackComponentizationFix
public class ItemStackComponentizationFix
extends com.mojang.datafixers.DataFix
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final com.google.common.base.Splitter
-
Constructor Summary
ConstructorDescriptionItemStackComponentizationFix
(com.mojang.datafixers.schemas.Schema p_331666_) -
Method Summary
Modifier and TypeMethodDescriptionprivate static com.mojang.serialization.Dynamic
<?> createFilteredText
(com.mojang.serialization.Dynamic<?> p_330363_, String p_328510_, Optional<String> p_328222_) private static void
fixAdventureModeChecks
(ItemStackComponentizationFix.ItemStackData p_328938_, com.mojang.serialization.Dynamic<?> p_336252_, int p_331810_) private static com.mojang.serialization.Dynamic
<?> fixAttributeModifier
(com.mojang.serialization.Dynamic<?> p_330280_) private static void
fixAttributeModifiers
(ItemStackComponentizationFix.ItemStackData p_329869_, com.mojang.serialization.Dynamic<?> p_332943_, int p_330062_) private static <T> com.mojang.serialization.Dynamic
<T> fixBlockEntityTag
(ItemStackComponentizationFix.ItemStackData p_334120_, com.mojang.serialization.Dynamic<T> p_332622_, String p_334133_) private static com.mojang.serialization.Dynamic
<?> fixBlockStatePredicate
(com.mojang.serialization.Dynamic<?> p_330250_, String p_335482_) private static void
fixBlockStatePredicates
(ItemStackComponentizationFix.ItemStackData p_331433_, com.mojang.serialization.Dynamic<?> p_332377_, String p_332474_, String p_333138_, boolean p_334219_) private static com.mojang.serialization.Dynamic
<?> fixBlockStateTag
(com.mojang.serialization.Dynamic<?> p_329060_) private static com.mojang.serialization.Dynamic
<?> fixBookPages
(ItemStackComponentizationFix.ItemStackData p_335763_, com.mojang.serialization.Dynamic<?> p_328532_) private static void
fixBucketedMobData
(ItemStackComponentizationFix.ItemStackData p_328428_, com.mojang.serialization.Dynamic<?> p_327719_) private static com.mojang.serialization.Dynamic
<?> fixDisplay
(ItemStackComponentizationFix.ItemStackData p_333136_, com.mojang.serialization.Dynamic<?> p_329974_, int p_330088_) private static void
fixEnchantments
(ItemStackComponentizationFix.ItemStackData p_332552_, com.mojang.serialization.Dynamic<?> p_328849_, String p_333260_, String p_334340_, boolean p_329498_) private static com.mojang.serialization.Dynamic
<?> fixFireworkExplosion
(com.mojang.serialization.Dynamic<?> p_327955_) private static void
private static void
private static void
fixItemStack
(ItemStackComponentizationFix.ItemStackData p_335726_, com.mojang.serialization.Dynamic<?> p_329007_) private static void
fixLodestoneTracker
(ItemStackComponentizationFix.ItemStackData p_330486_, com.mojang.serialization.Dynamic<?> p_329466_) private static com.mojang.datafixers.util.Pair
<com.mojang.serialization.Dynamic<?>, com.mojang.serialization.Dynamic<?>> fixMapDecoration
(com.mojang.serialization.Dynamic<?> p_329859_) private static String
fixMapDecorationType
(int p_328497_) private static void
fixPotionContents
(ItemStackComponentizationFix.ItemStackData p_329173_, com.mojang.serialization.Dynamic<?> p_331866_) static com.mojang.serialization.Dynamic
<?> fixProfile
(com.mojang.serialization.Dynamic<?> p_331244_) private static com.mojang.serialization.Dynamic
<?> fixProfileProperties
(com.mojang.serialization.OptionalDynamic<?> p_329629_) private static void
fixWritableBook
(ItemStackComponentizationFix.ItemStackData p_332414_, com.mojang.serialization.Dynamic<?> p_329764_) private static void
fixWrittenBook
(ItemStackComponentizationFix.ItemStackData p_333609_, com.mojang.serialization.Dynamic<?> p_330312_) private static boolean
isValidPlayerName
(String p_332205_) protected com.mojang.datafixers.TypeRewriteRule
makeRule()
parseEnchantment
(com.mojang.serialization.Dynamic<?> p_328387_) 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
-
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
-
BUCKETED_MOB_IDS
-
BUCKETED_MOB_TAGS
-
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
-
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
-
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
-
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
-
fixFireworkRocket
-
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
-
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 classcom.mojang.datafixers.DataFix
-