Class ComponentSerializer

java.lang.Object
net.flectone.pulse.processing.serializer.ComponentSerializer

public class ComponentSerializer extends Object
  • Constructor Details

    • ComponentSerializer

      @Inject public ComponentSerializer(com.google.gson.Gson gson)
  • Method Details

    • toStandard

      public @NonNull String toStandard(@NonNull net.kyori.adventure.text.Component component)
    • toPlain

      public @NonNull String toPlain(@NonNull net.kyori.adventure.text.Component component)
    • toLegacy

      public @NonNull String toLegacy(@NonNull net.kyori.adventure.text.Component component)
    • toJson

      public @NonNull String toJson(@NonNull net.kyori.adventure.text.Component component)
    • toJson

      public @NonNull String toJson(@NonNull PlayerPreLoginEvent playerPreLoginEventWithKickReason)
    • toJsonTree

      public @NonNull com.google.gson.JsonElement toJsonTree(@NonNull net.kyori.adventure.text.Component component)
    • fromStandard

      public @NonNull net.kyori.adventure.text.Component fromStandard(@NonNull String string)
    • fromPlain

      public @NonNull net.kyori.adventure.text.Component fromPlain(@NonNull String string)
    • fromLegacy

      public @NonNull net.kyori.adventure.text.Component fromLegacy(@NonNull String string)
    • fromJson

      public @NonNull net.kyori.adventure.text.Component fromJson(String string)
    • fromJsonTree

      public @NonNull net.kyori.adventure.text.Component fromJsonTree(com.google.gson.JsonElement jsonElement)