Bot releases are visible (Hide)
Published by DevNatan about 2 years ago
onSlotRender
handler prototype (#235)Now clear() supports immediate clear when context is on entity container (#235)
Bump com.diffplug.spotless from 6.9.1 to 6.10.0 (#214)
Full Changelog: https://github.com/DevNatan/inventory-framework/compare/2.5.4-beta...v2.5.4-rc.1
Published by DevNatan about 2 years ago
item.withSlot(...)
(#206)isOnEntityContainer
checks (#211)availableSlot(...)
and unified layout, use layout on regular and paginated views (#174)ref(String)
and nullable ref refOrNull(String)
(#210)clear()
(#209)List<T>
to List<? extends T>
asBukkitItem
and isEmpty
is now public (#201)onSuccess(BiConsumer<..., List<? extends T>>)
to get result on exampleAbstractView#nextTick
is now publicitem.onRender
with item.rendered(::createItem)
and item.onUpdate
with item.updated(::updatedItem)
setSource(Function<...>)
documentation with a real world exampleFull Changelog: https://github.com/DevNatan/inventory-framework/compare/2.5.3...v2.5.4-beta
Published by DevNatan about 2 years ago
Full Changelog: https://github.com/DevNatan/inventory-framework/compare/2.5.2...2.5.3
Published by DevNatan over 2 years ago
Full Changelog: https://github.com/DevNatan/inventory-framework/compare/2.5.1...2.5.2
Published by DevNatan over 2 years ago
Full Changelog: https://github.com/DevNatan/inventory-framework/compare/2.5.1-rc.2...2.5.1
Published by DevNatan over 2 years ago
Published by DevNatan over 2 years ago
In this release the entire internal code has been completely rewritten, new code is abstracted correctly to adapt possible implementations for other platforms in the new future and to make life easier for new contributors when they touch the code (#89).
onItemHold
, onItemRelease
and onMoveOut
can be applied per-itemonClickOutside
and onHotbarInteract
handlers now deprecated
offset
and limit
now deprecated
boolean
to let user know if page switch was successfulInventoryFramework has been moved from repository readme to Wiki.
Published by DevNatan over 2 years ago
Published by DevNatan over 2 years ago
This version of IF comes with some significant performance changes related to paging inventory and regarding defining items in the same, it is now possible for you to define more than one item for the same slot which will be rendered according to the rendering priority.
Closeable
(#82)Published by DevNatan over 2 years ago
onOpen
and onRender
(#51).onHotbarInteract(...)
is now stable;PaginatedView(rows)
constructor (#49).Published by DevNatan over 2 years ago
Published by DevNatan over 2 years ago
getClickOrigin()
from ViewSlotContext returning null.onItemRelease(...)
is no longer called if the global click was cancelled.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.
NOTHING
and UNKNOWN
click types are now cancelled by default, we will soon provide options to change this behavior.IllegalStateException
is throw when player context is not found and he has a View opened.Published by DevNatan over 2 years ago
closeOnOutsideClick
View option are enabled by default. You can disable this with view.setCloseOnClick(false)
.Published by DevNatan over 2 years ago
CloseViewContext
now delegates the original context (thanks to @zAlyson).onOpen
View handler.setCloseOnClickOutside
option to close View if player clicks outside the inventory screen.scheduleUpdate
on View to schedule automatic view updates (useful for animations).ScheduledView
is now deprecated and will be removed soon.setLayout
.@Deprecated
and will be removed soon.ReflectionUtils
to a different package to prevent conflicts with other libraries/plugins (thanks to @GeorgeV220) (#31).Published by DevNatan over 2 years ago
ViewContext#updateTitle
) support on 1.17 and 1.18 (#25).onItemRelease
now works with PaginatedView (#26).VirtualView.toSlot
to convert slot numbers (thanks @luiz-otavio).@Deprecated
as they will be removed in the near future and should not be used.Published by DevNatan almost 3 years ago