🌏 Adventure 4.0.0
Adventure 4.0.0 is a leap forward for the library previously known as Text. Adventure is a cross-platform library that is designed to simplify using Minecraft: Java Edition user-interface elements across all the major platforms. It also adds support for the latest Minecraft: Java Edition version features to ensure you can develop the best adventures your plugin or server possibly can!
The shiny new things ❇️
- Documentation, available at https://docs.adventure.kyori.net/
- a new
Audience
framework- entry point for displaying/sending content (messages, boss bars, titles, sounds) to viewers, such as a player or the server console
- a standard interface for platforms to implement, useful for cross-platform development
- ability to create and display a
BossBar
- ability to create and display a
Title
- ability to play a
Sound
- ability to use the
Translator
framework for using custom "server-side translations" in anyComponent
-based content
The refactors 🔧
- The package has moved from
net.kyori.text
tonet.kyori.adventure.text
of
andbuilder
methods inComponent
interfaces have moved to theComponent
interface - for example:TextComponent.of("foo")
becomesComponent.text("foo")
TextComponent.builder().content("foo")
becomesComponent.text().content("foo")
- RGB colour support via
TextColor
- The standard colours, previously in
TextColor
, can be found inNamedTextColor
- The standard colours, previously in
- changes to
HoverEvent
required to support Minecraft 1.16
Platform support 🗼
- Bukkit (and forks, such as Paper and Spigot) has a platform adapter available
- BungeeCord has a platform adapter available
- Fabric has a platform adapter available
- SpongeAPI 7.x has a platform adapter available
- SpongeAPI 8.x has native Adventure support - no platform adapter is required
- Velocity 1.1.x has native Adventure support - no platform adapter is required