ktInventory

fun Plugin.ktInventory(bukkitInventory: Inventory): KtInventory

Create KtInventory from Inventory.

Receiver

Plugin that handles events.

Since

1.0.0

Parameters

bukkitInventory

Inventory used to generate KtInventory.


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

Create KtInventory from Inventory.

Receiver

Plugin that handles events.

Since

1.0.0

Parameters

bukkitInventory

Inventory used to generate KtInventory.

block

Processing using KtInventory.


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

Create KtInventory of chest type Inventory.

Receiver

Plugin that handles events.

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 Plugin.ktInventory(title: String, line: Int = 3, altColorChar: Char? = '&', block: KtInventory.() -> Unit): KtInventory

Create KtInventory of chest type Inventory.

Receiver

Plugin that handles events.

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 Plugin.ktInventory(title: String, type: InventoryType, altColorChar: Char? = '&'): KtInventory

Create KtInventory of specific type Inventory.

Receiver

Plugin that handles events.

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 Plugin.ktInventory(title: String, type: InventoryType, altColorChar: Char? = '&', block: KtInventory.() -> Unit): KtInventory

Create KtInventory of specific type Inventory.

Receiver

Plugin that handles events.

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.