Skip to content

Releases: DevNatan/inventory-framework

v2.4.2

04 Apr 18:09
Compare
Choose a tag to compare

Bug fixes

  • Previous and next page items aren't displayed if item slot is manually defined (#44)
  • Error handler is not working in paginated inventory (#41)

Build System changes

  • Jetbrains annotations is now a transitive dependency (#45)

v2.4.2-rc.1

10 Mar 18:01
Compare
Choose a tag to compare
v2.4.2-rc.1 Pre-release
Pre-release

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 and UNKNOWN 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

09 Mar 18:05
Compare
Choose a tag to compare

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

Internal changes

  • Now closeOnOutsideClick View option are enabled by default. You can disable this with view.setCloseOnClick(false).

Build System changes

  • Now project is built on JDK 8 and targets Java 8 (thanks to @luiz-otavio #40)

2.4.0

26 Feb 21:02
Compare
Choose a tag to compare

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

22 Jan 22:54
Compare
Choose a tag to compare

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.

2.3.1

31 Dec 00:28
Compare
Choose a tag to compare
  • Assign deprecated annotation in View#getRows for dynamic views (#19)
  • View auto update and Spigot 1.16.5 API support (#18)