InventoryBuilder

class InventoryBuilder(inventorySize: InventorySize, inventoryTitle: Component)(source)

This class is used to easily create a custom inventory

Parameters

inventorySize

The size of the inventory

inventoryTitle

The title of the inventory

Constructors

Link copied to clipboard
constructor(inventorySize: InventorySize, inventoryTitle: Component)

Functions

Link copied to clipboard

This function is used to get a specific modification of the inventory, which may be edited to fit the needs of the inventory

Link copied to clipboard
fun item(slot: Int, inventoryItem: InventoryItem): InventoryBuilder

This function is used to add an item to the inventory

Link copied to clipboard
fun openInventory(targetUUID: UUID): Boolean

Builds and opens the inventory for the player with the specified UUID