Skip to content

Documentation

Juan Cruz Linsalata edited this page Apr 13, 2022 · 3 revisions

Creating a Menu

Create a new menu new InterfaceMenu() create items new InterfaceItem() set them menu.setItem(Integer, InterfaceItem) and build it menu.build(Player).

Menus can be extended and use the onBuild(MenuBuildContext) event. Items can be extended to use the onInteract(Player) and onClick(Player, Inventory) events.

Creating a Hotbar

Create a new hotbar new InterfaceHotbar() create items new InterfaceItem() set them hotbar.setItem(slot, item) and build it hotbar.build(player).

Hotbars can be extended and use the onBuild(HotbarBuildContext) event. Items can be extended to use the onInteract(Player) and onClick(Player, Inventory) events.

Clone this wiki locally