Package net.minecraft.util.datafix
Class ComponentDataFixUtils
java.lang.Object
net.minecraft.util.datafix.ComponentDataFixUtils
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> com.mojang.serialization.Dynamic
<T> createEmptyComponent
(com.mojang.serialization.DynamicOps<T> p_310010_) static <T> com.mojang.serialization.Dynamic
<T> createPlainTextComponent
(com.mojang.serialization.DynamicOps<T> p_312596_, String p_312893_) private static String
createTextComponentJson
(String p_309616_) static <T> com.mojang.serialization.Dynamic
<T> createTranslatableComponent
(com.mojang.serialization.DynamicOps<T> p_310384_, String p_313033_) extractTranslationString
(String p_331580_) static com.mojang.serialization.Dynamic
<?> rewriteFromLenient
(com.mojang.serialization.Dynamic<?> p_328370_) static <T> com.mojang.serialization.Dynamic
<T> wrapLiteralStringAsComponent
(com.mojang.serialization.Dynamic<T> p_309728_)
-
Field Details
-
EMPTY_CONTENTS
-
-
Constructor Details
-
ComponentDataFixUtils
public ComponentDataFixUtils()
-
-
Method Details
-
createPlainTextComponent
public static <T> com.mojang.serialization.Dynamic<T> createPlainTextComponent(com.mojang.serialization.DynamicOps<T> p_312596_, String p_312893_) -
createEmptyComponent
public static <T> com.mojang.serialization.Dynamic<T> createEmptyComponent(com.mojang.serialization.DynamicOps<T> p_310010_) -
createTextComponentJson
-
createTranslatableComponent
public static <T> com.mojang.serialization.Dynamic<T> createTranslatableComponent(com.mojang.serialization.DynamicOps<T> p_310384_, String p_313033_) -
wrapLiteralStringAsComponent
public static <T> com.mojang.serialization.Dynamic<T> wrapLiteralStringAsComponent(com.mojang.serialization.Dynamic<T> p_309728_) -
rewriteFromLenient
public static com.mojang.serialization.Dynamic<?> rewriteFromLenient(com.mojang.serialization.Dynamic<?> p_328370_) -
extractTranslationString
-