create

fun create(bukkitInventory: Inventory): KtInventory

Create KtInventory from Inventory.

Since

1.0.0

Parameters

bukkitInventory

Inventory used to generate KtInventory.


inline fun create(bukkitInventory: Inventory, block: KtInventory.() -> Unit): KtInventory

Create KtInventory from Inventory.

Since

1.0.0

Parameters

bukkitInventory

Inventory used to generate KtInventory.

block

Processing using KtInventory.


fun create(title: String, line: Int = 3, altColorChar: Char? = '&'): KtInventory

Create KtInventory of chest type Inventory.

Since

1.0.0

Parameters

title

Inventory title.

line

Inventory size (must be 1-6).

altColorChar

Alternate color code character to use for title. If null, do nothing. (default: '&')


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

Create KtInventory of chest type Inventory.

Since

1.0.0

Parameters

title

Inventory title.

line

Inventory size (must be 1-6).

altColorChar

Alternate color code character to use for title. If null, do nothing. (default: '&')

block

Processing using KtInventory.


fun create(title: String, type: InventoryType, altColorChar: Char? = '&'): KtInventory

Create KtInventory of specific type Inventory.

Since

1.0.0

Parameters

title

Inventory title.

type

Inventory type.

altColorChar

Alternate color code character to use for title. If null, do nothing. (default: '&')


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

Create KtInventory of specific type Inventory.

Since

1.0.0

Parameters

title

Inventory title.

type

Inventory type.

altColorChar

Alternate color code character to use for title. If null, do nothing. (default: '&')

block

Processing using KtInventory.