Repository navigation
2.0.0 Pre-Release 6
Pre-release
Pre-release
This release updates included libraries, makes changes to the text system, and fixes bugs.
- The modern serializer for components and the serializer for item stacks were updated to expect a
GameVersionobject as an argument- This allows components and ItemStacks to be serialized for versions the server is not currently running.
- This may be useful in case the API is used in environments where multiple game versions are significant, or no "current" version can be set.
- A
CommandSenderinterface was added.- This extends
PermissionHolderandLocaleHolder - It is implemented by
SpigotCommandSenderon Spigot, which replacesCommandPermissionHolder - It is injected into
CommandSourceStackon Fabric.
- This extends
- A
MutableComponentclass was added.- It cannot be used in place of regular Components, and is instead intended for building complex components without creating new objects on each change.
- Updated to the latest version of MidnightConfig:
- This release adds a new NBT parser, which can parse directly to ConfigObjects, removing the reliance on external libraries and allowing text components to be serialized directly.
- Fixed a few bugs:
- Parsing an
UnresolvedComponentwill no longer throw an exception when an empty string is given. - Adding a null parameter to a
PlaceholderContextwill no longer throw an exception - HoverEvents now (de)serialize show_item events properly.
- Parsing an