* feat: Add primitive support for sound api
* change to fail silently
fix: implement the correct playSound method
fix: bumped "since" version
* chore: update 1.21.5
* chore: enforce adventure's policy of not throwing exceptions on unsupported actions
* feat: allow sounds to be played from other players (on the same server)
* chore(fix): add missing getters/setters in packets
* chore: update 1.21.6
chore: added own notes to playSound method, as adventure moved them to the Sound class
* chore: cleanup
* fix: ignore invalid sound source
fix: sound source error on wrong version
* chore: prettify key writing
* Implement missing Player#playSound(Sound)
* Reverted Player#playSound(Sound) implementation
Also, improved documentation related to #playSound mehtods
* chore(jd): mark dialog operations unsupported
* chore: update 1.21.9
---------
Co-authored-by: Adrian Gonzales <adriangonzalesval@gmail.com>
* Improve documentation for priority parameter in EventManager
PostOrder was deprecated in commit
(4f227badc2) in favor of priorities.
PostOrder itself was very descriptive on which PostOrder is processed first. A number cannot be descriptive about that - it is never clear if higher or lower numbers are processed first.
The Subscribe event attribute does contain a description on how priorities are evaluated. The EventManager did not, which literally did confused developers manually registering events.
This commit fixes this by describing the priority argument in EventManager with the same description that Subscribe uses.
* Fixed checkstyle
---------
Co-authored-by: Adrian Gonzales <adriangonzalesval@gmail.com>
* Fix Gradle deprecations
By using test suites, we explicitely configure the relevant dependencies
on the test sourceset. This is not done by merely configuring the test task.
* Switch to maintained version of Shadow
* Update to Gradle 8.14.2
* fix: Don't ignore the player's locale in message translation
* feature: Use PointersSupplier to save constructing a Pointers instance for every player
* fix: Don't use a custom implementation of Identity for players
We don't need to carry about this object for every player.
* chore: Stop using deprecated TranslationRegistry
* fix: Simplify TranslatableMapper and fix bugs
- The fallback string is not intended to be translated, so don't do that.
- Check if the string can be translated in the default locale before using the closest mapper as devs may have their own strings.
- Remove the hardcoded check for TranslationRegistry instance as devs (and us now) can use non-TranslationRegistry translator instances.