Class Legacy_StyleSerializerExtended

java.lang.Object
com.github.retrooper.packetevents.util.adventure.Legacy_StyleSerializerExtended
All Implemented Interfaces:
com.google.gson.JsonDeserializer<net.kyori.adventure.text.format.Style>, com.google.gson.JsonSerializer<net.kyori.adventure.text.format.Style>

public class Legacy_StyleSerializerExtended extends Object implements com.google.gson.JsonDeserializer<net.kyori.adventure.text.format.Style>, com.google.gson.JsonSerializer<net.kyori.adventure.text.format.Style>
  • Method Summary

    Modifier and Type
    Method
    Description
    net.kyori.adventure.text.format.Style
    deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context)
     
    com.google.gson.JsonElement
    serialize(net.kyori.adventure.text.format.Style src, Type typeOfSrc, com.google.gson.JsonSerializationContext context)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • deserialize

      public net.kyori.adventure.text.format.Style deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException
      Specified by:
      deserialize in interface com.google.gson.JsonDeserializer<net.kyori.adventure.text.format.Style>
      Throws:
      com.google.gson.JsonParseException
    • serialize

      public com.google.gson.JsonElement serialize(net.kyori.adventure.text.format.Style src, Type typeOfSrc, com.google.gson.JsonSerializationContext context)
      Specified by:
      serialize in interface com.google.gson.JsonSerializer<net.kyori.adventure.text.format.Style>