KtInventoryPagedStorable

Represents a storable component owned by a paged inventory.

This component is applied to each created page entry so initialization and saving can use page-specific state.

Since

2.2.0

Type Parameters

T

Type of page entry this storable is applied to

Properties

Link copied to clipboard
val initialize: T.() -> List<ItemStack?>

Callback that provides initial items for a page entry

Link copied to clipboard

Callback invoked when slots are clicked

Link copied to clipboard

Callback invoked when items are dragged

Link copied to clipboard

Callback invoked before click events to determine if action should proceed

Link copied to clipboard

Callback invoked before drag events to determine if action should proceed

Link copied to clipboard
val slots: List<Int>

List of slot indices managed by this component