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_304644_, Type p_304861_, com.google.gson.JsonDeserializationContext p_304563_) 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_304915_, Type p_304423_, com.google.gson.JsonSerializationContext p_304514_)
      Specified by:
      serialize in interface com.google.gson.JsonSerializer<Component>