Skip to content

hohserg1/DynamicInventoryMenu

Repository files navigation

DynamicInventoryMenu

Powerful api for create dynamically updated bukkit ui

Development is continues

Usage

  • add library to you project(you can use jitpack.io for this)

  • create menu fabric

val menu: Player => Menu = Menu.applyOrCreate(new Menu(_, "Title", size=45))
  • add buttons and decorations
val menu: Player => Menu = Menu.applyOrCreate(new Menu(_, "Title", size=45)
  .addDecoration(new ItemStack(Material.APPLE), 1, 1))
  • when you need to open menu
menu(player).open()

To do...

  • Basic architecture
  • List view for OpenHashMap
  • List view for any collection
  • Java syntax and collection support
  • Component abstract level
  • Make menus absolutly finalisable(mutable menu to immutable menu)(for force you to conside all usecases on menu creating stage)
  • Some stuffs