NichtStudioCode / InvUI

A spigot library for creating custom inventory-based GUIs.
MIT License
242 stars 19 forks source link

Question: asynchronous addition of items #52

Closed Lemar98 closed 11 months ago

Lemar98 commented 11 months ago

Hello. Is it possible in your API to add items to inventory asynchronously? For example, in order to add players' heads without delay

NichtStudioCode commented 11 months ago

I think AsyncItem fits your use-case pretty well. Generally, you can update or change items at any time after a Window has been opened, but this should always be on the server thread. If there are any further questions, please ask them in GitHub Discussions or on the Discord server :)