Create your own multipart widget. - worldOneo/GUI-API GitHub Wiki
What is a multipart widget?
A multipart widget is a widget wich can be rendered over multiple slots.
A multipart widget has to implement from IMultipartWidget. The main different to an IWidget is that in the render function it doesnt return an ItemStack but an List<Pair<ItemStack, Integer>>
where the ItemStack
is the Item to display and the Integer
is the slot.
Tipp
It is recommended to implement from AbstractMultipartWidget instead of IMultipartWidget because it comes with some nice to have methods like the addToGUI(IGUI igui) and open(Player player) which allow the widget to reopen the GUI from within the widget!