Package-level declarations

Types

Link copied to clipboard
abstract class AbstractKtInventory(context: KtInventoryPluginContext, val line: Int) : KtInventoryBase, InventoryHolder

Abstract base class for creating inventory-based GUIs. Handles inventory management, button interactions, and item storage functionality.

Link copied to clipboard

Base class for paginated inventories

Link copied to clipboard

Interface for objects that have a parent inventory.

Link copied to clipboard
abstract class KtInventory(context: KtInventoryPluginContext, val line: Int, altColorChar: Char? = '&') : AbstractKtInventory

Abstract inventory class that creates an inventory with a customizable title. Extends AbstractKtInventory to provide basic inventory functionality.

Link copied to clipboard

An abstract inventory implementation that uses Adventure's Component for titles.

Link copied to clipboard
abstract class KtInventoryBase(val line: Int)

Base class for creating custom inventories.

Link copied to clipboard

Abstract class for paginated inventories with customizable titles.

Link copied to clipboard

Abstract class for paginated inventories with Adventure Component titles.

Link copied to clipboard

Context interface for KtInventory plugin integration.

Link copied to clipboard
interface ParentInventory

Represents a parent inventory that can contain other inventories.

Link copied to clipboard

Interface for inventories that can be refreshed.

Functions

Link copied to clipboard
fun slot(y: Int, x: Int): Int

Calculates the slot number for a given position in the inventory.

fun slot(y: Int, x: IntRange): List<Int>

Calculates the slot numbers for a given row and column range.

fun slot(y: IntRange, x: Int): List<Int>

Calculates the slot numbers for a given row range and column.

fun slot(y: IntRange, x: IntRange): List<Int>

Calculates the slot numbers for given row and column ranges.