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_304546_, String p_304390_)
    • createEmptyComponent

      public static <T> com.mojang.serialization.Dynamic<T> createEmptyComponent(com.mojang.serialization.DynamicOps<T> p_304990_)
    • createTextComponentJson

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

      public static com.mojang.serialization.Dynamic<?> rewriteFromLenient(com.mojang.serialization.Dynamic<?> p_323863_)
    • extractTranslationString

      public static Optional<String> extractTranslationString(String p_338737_)