v1.9.0 #23
theEvilReaper
started this conversation in
General
v1.9.0
#23
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Changelog
Version
1.9.0
introduces support for Minecraft1.21.5
. The internalmycelium-bom
version has been updated accordingly to reflect this change.This release includes several additions, removals, and breaking changes. Let’s start with the additions and improvements that do not require any migration efforts:
✨ Additions & Improvements
ModernFileHandler
has been introduced. It should be used in cases where you serialize or writeTypeToken
references using GsonBaseMap
now includes a builder for creating instances. As a result, the static factory methods have been deprecated and will be removed in a future release (see #20)BaseMap
builder is extendable and can be inherited to create more contextual builder variantsrefresh
method in theMapEntry
class has been removed. Its behavior has been integrated into thecreateFile
method (see #21)📦 Inventory System Breaking Changes
This library contains a subsystem for creating inventories based on layouts. Since the underlying Minestom implementation was refactored in version
1.21.5
, the way clicks are handled has changed.Previously, clicks were returned as part of a
InventoryConditionResult
. This class has been removed and replaced by more explicit click holder implementations. Consequently, your click handling logic now needs to return one of the followingClickHolder
variants:MinestomClick
: For forwarding the click to the server with itsClickType
CancelClick
: For blocking the clickNOPClick
: For indicating no action should be takenHere’s an updated example of how to work with the new click system:
Beta Was this translation helpful? Give feedback.
All reactions