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_) 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_)
-