KtInventoryProvider

class KtInventoryProvider(plugin: Plugin)

KtInventory creator

Since

1.0.0

Constructors

Link copied to clipboard
constructor(plugin: Plugin)

Functions

Link copied to clipboard
fun create(bukkitInventory: Inventory): KtInventory
inline fun create(bukkitInventory: Inventory, block: KtInventory.() -> Unit): KtInventory

Create KtInventory from Inventory.

fun create(title: String, line: Int = 3, altColorChar: Char? = '&'): KtInventory
inline fun create(title: String, line: Int = 3, altColorChar: Char? = '&', block: KtInventory.() -> Unit): KtInventory

Create KtInventory of chest type Inventory.

fun create(title: String, type: InventoryType, altColorChar: Char? = '&'): KtInventory
inline fun create(title: String, type: InventoryType, altColorChar: Char? = '&', block: KtInventory.() -> Unit): KtInventory

Create KtInventory of specific type Inventory.