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.0introduces support for Minecraft1.21.5. The internalmycelium-bomversion 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
ModernFileHandlerhas been introduced. It should be used in cases where you serialize or writeTypeTokenreferences using GsonBaseMapnow 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)BaseMapbuilder is extendable and can be inherited to create more contextual builder variantsrefreshmethod in theMapEntryclass has been removed. Its behavior has been integrated into thecreateFilemethod (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 followingClickHoldervariants:MinestomClick: For forwarding the click to the server with itsClickTypeCancelClick: 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