Class AdventureSerializer

java.lang.Object
com.github.retrooper.packetevents.util.adventure.AdventureSerializer

public final class AdventureSerializer extends Object
  • Method Details

    • serializer

      public static AdventureSerializer serializer(ClientVersion version)
    • serializer

      public static AdventureSerializer serializer()
      Please use serializer(ClientVersion) instead of this if possible
    • getGsonSerializer

      @Deprecated public static net.kyori.adventure.text.serializer.gson.GsonComponentSerializer getGsonSerializer()
      Deprecated.
      use gson() instead
    • getLegacyGsonSerializer

      @Deprecated public static net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer getLegacyGsonSerializer()
      Deprecated.
      use legacy() instead
    • getLegacySerializer

      @Deprecated public static net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer getLegacySerializer()
      Deprecated.
      use legacy() instead
    • getNBTSerializer

      @Deprecated public static AdventureNBTSerializer getNBTSerializer()
      Deprecated.
      use nbt() instead
    • asVanilla

      @Deprecated public static String asVanilla(net.kyori.adventure.text.Component component)
      Deprecated.
    • fromLegacyFormat

      @Deprecated public static net.kyori.adventure.text.Component fromLegacyFormat(String legacyMessage)
      Deprecated.
      use fromLegacy(String) instead
    • toLegacyFormat

      @Deprecated public static String toLegacyFormat(net.kyori.adventure.text.Component component)
      Deprecated.
    • parseComponent

      @Deprecated public static net.kyori.adventure.text.Component parseComponent(String json)
      Deprecated.
      use fromJson(String) instead
    • parseJsonTree

      @Deprecated public static net.kyori.adventure.text.Component parseJsonTree(com.google.gson.JsonElement json)
      Deprecated.
    • toJson

      @Deprecated public static String toJson(net.kyori.adventure.text.Component component)
      Deprecated.
      use asJson(Component) instead
    • toJsonTree

      @Deprecated public static com.google.gson.JsonElement toJsonTree(net.kyori.adventure.text.Component component)
      Deprecated.
    • fromNbt

      @Deprecated public static net.kyori.adventure.text.Component fromNbt(NBT tag)
      Deprecated.
      use fromNbtTag(NBT) instead
    • toNbt

      @Deprecated public static NBT toNbt(net.kyori.adventure.text.Component component)
      Deprecated.
    • fromLegacy

      public net.kyori.adventure.text.Component fromLegacy(String legacy)
    • asLegacy

      public String asLegacy(net.kyori.adventure.text.Component component)
    • fromJson

      public net.kyori.adventure.text.Component fromJson(String json)
    • asJson

      public String asJson(net.kyori.adventure.text.Component component)
    • fromJsonTree

      public net.kyori.adventure.text.Component fromJsonTree(com.google.gson.JsonElement json)
    • asJsonTree

      public com.google.gson.JsonElement asJsonTree(net.kyori.adventure.text.Component component)
    • fromNbtTag

      public net.kyori.adventure.text.Component fromNbtTag(NBT tag)
    • asNbtTag

      public NBT asNbtTag(net.kyori.adventure.text.Component component)
    • gson

      public net.kyori.adventure.text.serializer.gson.GsonComponentSerializer gson()
    • legacy

      public net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer legacy()
    • nbt

      public AdventureNBTSerializer nbt()