Class Component.SerializerAdapter

java.lang.Object
net.minecraft.network.chat.Component.SerializerAdapter
All Implemented Interfaces:
com.google.gson.JsonDeserializer<MutableComponent>, com.google.gson.JsonSerializer<Component>
Enclosing interface:
Component

public static class Component.SerializerAdapter extends Object implements com.google.gson.JsonDeserializer<MutableComponent>, com.google.gson.JsonSerializer<Component>
  • Field Details

  • Constructor Details

  • Method Details

    • deserialize

      public MutableComponent deserialize(com.google.gson.JsonElement p_311708_, Type p_310257_, com.google.gson.JsonDeserializationContext p_310325_) throws com.google.gson.JsonParseException
      Specified by:
      deserialize in interface com.google.gson.JsonDeserializer<MutableComponent>
      Throws:
      com.google.gson.JsonParseException
    • serialize

      public com.google.gson.JsonElement serialize(Component p_309493_, Type p_310679_, com.google.gson.JsonSerializationContext p_312693_)
      Specified by:
      serialize in interface com.google.gson.JsonSerializer<Component>