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_304990_) static <T> com.mojang.serialization.Dynamic<T>
createPlainTextComponent
(com.mojang.serialization.DynamicOps<T> p_304546_, String p_304390_) private static String
createTextComponentJson
(String p_304837_) static <T> com.mojang.serialization.Dynamic<T>
createTranslatableComponent
(com.mojang.serialization.DynamicOps<T> p_304499_, String p_304830_) static <T> com.mojang.serialization.Dynamic<T>
wrapLiteralStringAsComponent
(com.mojang.serialization.Dynamic<T> p_304540_)
-
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_304546_, String p_304390_) -
createEmptyComponent
public static <T> com.mojang.serialization.Dynamic<T> createEmptyComponent(com.mojang.serialization.DynamicOps<T> p_304990_) -
createTextComponentJson
-
createTranslatableComponent
public static <T> com.mojang.serialization.Dynamic<T> createTranslatableComponent(com.mojang.serialization.DynamicOps<T> p_304499_, String p_304830_) -
wrapLiteralStringAsComponent
public static <T> com.mojang.serialization.Dynamic<T> wrapLiteralStringAsComponent(com.mojang.serialization.Dynamic<T> p_304540_)
-