UiModel

class UiModel

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

The entries of the model

Link copied to clipboard
var rows: Int

The rows count of the model

Link copied to clipboard

The title of the Model

Functions

Link copied to clipboard
fun add(entry: UiEntry): UiModel

Adds an entry to the model, only if there is an empty slot

Link copied to clipboard
fun build(inventory: Inventory?, dynamicOnly: Boolean = false): Inventory

Builds the model into a Bukkit Inventory, or applies the entries to the given inventory

Link copied to clipboard

Clears the entries of the model

Link copied to clipboard
fun fill(entry: UiEntry): UiModel

Fills the model with the given entry

Link copied to clipboard

Fills the empty slots of the model with the given entry

Link copied to clipboard
fun remove(slot: Int): UiModel

Removes an entry from the model

Link copied to clipboard
fun set(slot: Int, entry: UiEntry): UiModel

Sets an entry to the model