Skip to content

2.4.0

Compare
Choose a tag to compare
@DevNatan DevNatan released this 26 Feb 21:02
· 593 commits to main since this release

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).