BasicMenu

class BasicMenu(title: String, size: Int, items: List<MenuItem>) : FlyLibComponent, Listener

A Inventory menu.

Constructors

BasicMenu
Link copied to clipboard
fun BasicMenu(title: String, size: Int, items: List<MenuItem>)

Types

Companion
Link copied to clipboard
object Companion

Functions

close
Link copied to clipboard
fun close()

Close the menus of all players displaying this menu.

display
Link copied to clipboard
fun display(player: Player)

Show the inventory to the player.

getKoin
Link copied to clipboard
open override fun getKoin(): Koin
update
Link copied to clipboard
fun update(builder: BasicMenuAction)

Updates the menus of all players displaying this menu.

Properties

items
Link copied to clipboard
val items: List<MenuItem>
size
Link copied to clipboard
val size: Int
title
Link copied to clipboard
val title: String