Releases: NichtStudioCode/InvUI
Releases · NichtStudioCode/InvUI
InvUI v2.0.0-alpha.5
- Inventories can now define click handlers
- Inventories can now have multiple item update handlers
- Added
ItemBuilder#setCustomName - Fixed an issue where ItemBuilder would never clear its cache and return outdated item stacks
- Added
ItemBuilder#build, which will never return cached item stacks - Fixed an issue where embedded obscured inventories would not update properly
InvUI v2.0.0-alpha.4
- Fixed an issue where
ItemBuildercould not handle item stacks with a custom model data component that had an alpha value != 0 in the colors section
InvUI v2.0.0-alpha.3
- Fixed a possible NPE in the
ItemBuilderconstructor - Fixed an issue where
ItemBuilderwould try to write into unmodifiable collections - Fixed an issue where custom model data was not cloned when cloning
ItemBuilder
InvUI v2.0.0-alpha.2
- Fixed an issue where windows were not notified when updating inventories through composite- or obscured inventories
InvUI v2.0.0-alpha.1
Please note that this is a pre-release, and more API-breaking changes may happen in future pre-releases.
The javadoc for this version can be found here.
The project structure has changed, the only available artifacts are now xyz.xenondevs.invui:invui and xyz.xenondevs.invui:invui-kotlin.
Breaking changes
- Removed multi-version support, future InvUI versions will only always target latest Paper
- Removed Spigot support
Gui,Window,Inventory, and all their subclasses are now sealed or finalItemis now sealed, butAbstractItemcan still be extended- Replaced
ControlItemwithBoundItem/AbstractBoundItem - Removed
Item#getItemProvider()in favor ofItem#getItemProvider(Player) Item#handleClicknow receivesClickinstead ofInventoryClickEvent- Removed
SkullBuilder,PotionBuilder,BannerBuilder,FireworkBuilderand replacedItemBuilderwith a simplified version. All this data can still be added to items using the new ItemBuilder's data component methods. - Removed support for
BaseComponent, adventure components can now be used without wrapping them in aComponentWrapper - Raw strings for names in the item builder or window title are now parsed as mini message instead of legacy text format
- Removed the default item implementations such as
SimpleItemorCycleItem. Alternatives are available via static methods inItemor usingItem.builder().
New features
- New
Item.BuilderandBoundItem.BuilderAPI for creating UI items without subclassingAbstractItem - Data component support in
ItemBuilder - Added
IngredientPreset Item#notifyWindowscan now be called asynchronously- Experimental reactive item/gui/window API via
invui-kotlin
InvUI v1.43
- 1.21.4 Support
InvUI v1.42
- #98 : player context in
Item#getItemProvider
InvUI v1.41
- Fixed #95
- Fixed
Window#changeTitlecausing an empty inventory to be visible for a short amount of time in some cases
InvUI v1.40
- Fixed dupe with gui-embedded inventories
InvUI v1.39
- 1.21.2 Support
- Fixed NoSuchMethodError when trying to open anvil window on 1.21.1