Class ComponentDataFixUtils

java.lang.Object
net.minecraft.util.datafix.ComponentDataFixUtils

public class ComponentDataFixUtils extends Object
  • Field Details

    • EMPTY_CONTENTS

      private static final String 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

      private static String createTextComponentJson(String p_309616_)
    • 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_)