package xyz.lychee.lagfixer.libs.adventure.text.serializer.gson; import com.google.gson.Gson; import com.google.gson.TypeAdapter; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; import xyz.lychee.lagfixer.libs.adventure.key.Key; import xyz.lychee.lagfixer.libs.adventure.text.BlockNBTComponent; import xyz.lychee.lagfixer.libs.adventure.text.Component; import xyz.lychee.lagfixer.libs.adventure.text.event.ClickEvent; import xyz.lychee.lagfixer.libs.adventure.text.event.HoverEvent; import xyz.lychee.lagfixer.libs.adventure.text.format.Style; import xyz.lychee.lagfixer.libs.adventure.text.format.TextColor; import xyz.lychee.lagfixer.libs.adventure.text.format.TextDecoration; import xyz.lychee.lagfixer.libs.annotations.Nullable; final class SerializerFactory implements TypeAdapterFactory { static final Class KEY_TYPE = Key.class; static final Class COMPONENT_TYPE = Component.class; static final Class