generated from ArkFlame/Bukkit-Boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 2
Documentation
Juan Cruz Linsalata edited this page Apr 13, 2022
·
3 revisions
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.
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.