Skip to content

2.0.0 Pre-Release 6

Pre-release
Pre-release

Choose a tag to compare

@wallenjos01 wallenjos01 released this 06 Feb 00:38

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 GameVersion object 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 CommandSender interface was added.
    • This extends PermissionHolder and LocaleHolder
    • It is implemented by SpigotCommandSender on Spigot, which replaces CommandPermissionHolder
    • It is injected into CommandSourceStack on Fabric.
  • A MutableComponent class 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 UnresolvedComponent will no longer throw an exception when an empty string is given.
    • Adding a null parameter to a PlaceholderContext will no longer throw an exception
    • HoverEvents now (de)serialize show_item events properly.