Add support for spigot components #2

Merged
TurtleException merged 12 commits from feature/spigot-components into main 2022-12-26 18:26:06 +00:00
TurtleException commented 2022-12-26 18:09:12 +00:00 (Migrated from github.com)

Since serialization & deserialization of Minecraft JSON text is not fully supported by spigot's API (e.g. Unable to parse TextComponents without a text tag), this library should optionally support parsing a FormatText directly to BaseComponents.

The implementation proposed by this pr is not flawless. Currently, all formats that are nested in a JSON-style don't allow multiple attributes to be parsed into one element. This should be fixed regardless of this specific feature, so for now the implementation follows the example set by other formats.

Since serialization & deserialization of Minecraft JSON text is not fully supported by spigot's API (e.g. Unable to parse `TextComponent`s without a _text_ tag), this library should optionally support parsing a FormatText directly to `BaseComponent`s. The implementation proposed by this pr is not flawless. Currently, all formats that are nested in a JSON-style don't allow multiple attributes to be parsed into one element. This should be fixed regardless of this specific feature, so for now the implementation follows the example set by other formats.
Sign in to join this conversation.
No description provided.