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_331673_) -
Method Summary
Modifier and TypeMethodDescriptionprivate static com.mojang.serialization.Dynamic
<?> createFilteredText
(com.mojang.serialization.Dynamic<?> p_331589_, String p_330423_, Optional<String> p_330385_) private static void
fixAdventureModeChecks
(ItemStackComponentizationFix.ItemStackData p_332034_, com.mojang.serialization.Dynamic<?> p_332091_, int p_331042_) private static com.mojang.serialization.Dynamic
<?> fixAttributeModifier
(com.mojang.serialization.Dynamic<?> p_331035_) private static void
fixAttributeModifiers
(ItemStackComponentizationFix.ItemStackData p_330771_, com.mojang.serialization.Dynamic<?> p_331387_, int p_330887_) private static <T> com.mojang.serialization.Dynamic
<T> fixBlockEntityTag
(ItemStackComponentizationFix.ItemStackData p_330721_, com.mojang.serialization.Dynamic<T> p_331427_, String p_331421_) private static com.mojang.serialization.Dynamic
<?> fixBlockStatePredicate
(com.mojang.serialization.Dynamic<?> p_331862_, String p_332123_) private static void
fixBlockStatePredicates
(ItemStackComponentizationFix.ItemStackData p_331487_, com.mojang.serialization.Dynamic<?> p_331061_, String p_330321_, String p_332110_, boolean p_332166_) private static com.mojang.serialization.Dynamic
<?> fixBlockStateTag
(com.mojang.serialization.Dynamic<?> p_332829_) private static com.mojang.serialization.Dynamic
<?> fixBookPages
(ItemStackComponentizationFix.ItemStackData p_332071_, com.mojang.serialization.Dynamic<?> p_330407_) private static void
fixBucketedMobData
(ItemStackComponentizationFix.ItemStackData p_331570_, com.mojang.serialization.Dynamic<?> p_330855_) private static com.mojang.serialization.Dynamic
<?> fixDisplay
(ItemStackComponentizationFix.ItemStackData p_331302_, com.mojang.serialization.Dynamic<?> p_331703_, int p_331793_) private static void
fixEnchantments
(ItemStackComponentizationFix.ItemStackData p_331903_, com.mojang.serialization.Dynamic<?> p_330744_, String p_331654_, String p_331804_, boolean p_331955_) private static com.mojang.serialization.Dynamic
<?> fixFireworkExplosion
(com.mojang.serialization.Dynamic<?> p_332063_) private static void
private static void
private static void
fixItemStack
(ItemStackComponentizationFix.ItemStackData p_332167_, com.mojang.serialization.Dynamic<?> p_330498_) private static void
fixLodestoneTracker
(ItemStackComponentizationFix.ItemStackData p_332824_, com.mojang.serialization.Dynamic<?> p_332755_) private static com.mojang.datafixers.util.Pair
<com.mojang.serialization.Dynamic<?>, com.mojang.serialization.Dynamic<?>> fixMapDecoration
(com.mojang.serialization.Dynamic<?> p_332095_) private static String
fixMapDecorationType
(int p_330596_) private static void
fixPotionContents
(ItemStackComponentizationFix.ItemStackData p_330477_, com.mojang.serialization.Dynamic<?> p_330723_) static com.mojang.serialization.Dynamic
<?> fixProfile
(com.mojang.serialization.Dynamic<?> p_330375_) private static com.mojang.serialization.Dynamic
<?> fixProfileProperties
(com.mojang.serialization.OptionalDynamic<?> p_330875_) private static void
fixWritableBook
(ItemStackComponentizationFix.ItemStackData p_330306_, com.mojang.serialization.Dynamic<?> p_331455_) private static void
fixWrittenBook
(ItemStackComponentizationFix.ItemStackData p_330209_, com.mojang.serialization.Dynamic<?> p_332113_) private static boolean
isValidPlayerName
(String p_332666_) protected com.mojang.datafixers.TypeRewriteRule
makeRule()
parseEnchantment
(com.mojang.serialization.Dynamic<?> p_332205_) 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_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
-
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
-
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
-
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
-
fixFireworkRocket
-
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
-
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 classcom.mojang.datafixers.DataFix
-