Releases: DevNatan/inventory-framework
Releases Β· DevNatan/inventory-framework
v2.4.2
v2.4.2-rc.1
Bug fixes
getClickOrigin()
from ViewSlotContext returning null.onItemRelease(...)
is no longer called if the global click was cancelled.
Optimizations
We've changed a few things in the click listener that make us skip some steps depending on conditions that will slightly increase the performance of click handlers. Also, now the inventory drag event checks is skipped if the View doesn't have cancelOnDrag
set explicitly.
Internal changes
NOTHING
andUNKNOWN
click types are now cancelled by default, we will soon provide options to change this behavior.- A
IllegalStateException
is throw when player context is not found and he has a View opened.
2.4.1
Bug fixes
- It's now possible to interact with items in the player's inventory while the View is open independently.
- Fixed bug that allows player move items to the View inventory even if View is configured to cancel clicks or cancel move in by shift clicking items on their inventory.
- Clicks being cancelled in player inventory if view is marked to cancel on click even player is not clicking in the view inventory are not allowed.
Features
- Error Handling prototype.
Internal changes
- Now
closeOnOutsideClick
View option are enabled by default. You can disable this withview.setCloseOnClick(false)
.
Build System changes
- Now project is built on JDK 8 and targets Java 8 (thanks to @luiz-otavio #40)
2.4.0
Bug fixes
- Slot conversion to near-limited row was fixed (#32).
- Now an exception is thrown when trying to open a View without the ViewFrame being registered (thanks to @luiz-otavio).
CloseViewContext
now delegates the original context (thanks to @zAlyson).- An exception will be thrown when an inventory tries to be modified in the
onOpen
View handler.
Features
- Added
setCloseOnClickOutside
option to close View if player clicks outside the inventory screen. - Use
scheduleUpdate
on View to schedule automatic view updates (useful for animations).
API changes
- Introduced a more intuitive way to schedule view updates,
ScheduledView
is now deprecated and will be removed soon. - Allow PaginatedView layout removal by specifying null on
setLayout
. - Some public methods from VirtualView and View become internal, and fast path methods (to ItemStack)
from VirtualView becomes@Deprecated
and will be removed soon.
Internal changes
- Moved
ReflectionUtils
to a different package to prevent conflicts with other libraries/plugins (thanks to @GeorgeV220) (#31).
2.3.2
Bug Fixes
- Dynamic title update (
ViewContext#updateTitle
) support on 1.17 and 1.18 (#25). - Some contexts came with null click origin (#27).
- Now an exception is thrown when a View is registered multiple times.
onItemRelease
now works with PaginatedView (#26).
API changes
- Expose
VirtualView.toSlot
to convert slot numbers (thanks @luiz-otavio). - Some methods of the ViewFrame class have been marked
@Deprecated
as they will be removed in the near future and should not be used.