类 TranslatableComponentSerializer

java.lang.Object
net.md_5.bungee.chat.BaseComponentSerializer
net.md_5.bungee.chat.TranslatableComponentSerializer
所有已实现的接口:
com.google.gson.JsonDeserializer<TranslatableComponent>, com.google.gson.JsonSerializer<TranslatableComponent>

public class TranslatableComponentSerializer extends BaseComponentSerializer implements com.google.gson.JsonSerializer<TranslatableComponent>, com.google.gson.JsonDeserializer<TranslatableComponent>
  • 构造器详细资料

    • TranslatableComponentSerializer

      public TranslatableComponentSerializer()
  • 方法详细资料

    • deserialize

      public TranslatableComponent deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException
      指定者:
      deserialize 在接口中 com.google.gson.JsonDeserializer<TranslatableComponent>
      抛出:
      com.google.gson.JsonParseException
    • serialize

      public com.google.gson.JsonElement serialize(TranslatableComponent src, Type typeOfSrc, com.google.gson.JsonSerializationContext context)
      指定者:
      serialize 在接口中 com.google.gson.JsonSerializer<TranslatableComponent>