Class Component.Serializer

java.lang.Object
net.minecraft.network.chat.Component.Serializer
Enclosing interface:
Component

public static class Component.Serializer extends Object
  • Field Details

    • GSON

      private static final com.google.gson.Gson GSON
  • Constructor Details

    • Serializer

      private Serializer()
  • Method Details

    • deserialize

      static MutableComponent deserialize(com.google.gson.JsonElement p_130720_)
    • serialize

      static com.google.gson.JsonElement serialize(Component p_304983_)
    • toJson

      public static String toJson(Component p_130704_)
    • toJsonTree

      public static com.google.gson.JsonElement toJsonTree(Component p_130717_)
    • fromJson

      @Nullable public static MutableComponent fromJson(String p_130702_)
    • fromJson

      @Nullable public static MutableComponent fromJson(@Nullable com.google.gson.JsonElement p_130692_)
    • fromJsonLenient

      @Nullable public static MutableComponent fromJsonLenient(String p_130715_)