Package-level declarations

Types

Link copied to clipboard
abstract class AbstractItemProvider

Base class for item providers in the GUI system. Provides common functionality for managing the GUI reference and inventory slot.

Link copied to clipboard
class AsyncItemProvider(val placeholder: ItemStack, providerFuture: CompletableFuture<AbstractItemProvider>) : AbstractItemProvider

An ItemProvider that can be used when the item is not immediately available, such as when it needs to be loaded from a database or generated asynchronously. It will display a placeholder item until the actual item is available.

Link copied to clipboard
class AutoCycleItemProvider(items: List<ItemStack>, val plugin: ColosseumPlugin, cycleInterval: Long = 1) : AbstractItemProvider

An ItemProvider that automatically cycles through a list of items at a specified interval. This is useful for creating dynamic GUI elements that change over time without user interaction.

Link copied to clipboard
class CommandItemProvider(val itemStack: ItemStack, val command: String) : AbstractItemProvider

An ItemProvider that executes a command when clicked. The command will be executed as if the player had typed it in chat, so it can include placeholders like %player% that will be replaced with the player's name.

Link copied to clipboard
class CycleItemProvider(items: List<ItemStack>) : AbstractItemProvider

An ItemProvider that cycles through a list of items each time it is clicked. This can be used for things like toggles or settings that have multiple options.

Link copied to clipboard
abstract class ScrollItemProvider(val scrollAmount: Int, val inventoryId: Int) : AbstractItemProvider

An ItemProvider that scrolls a VirtualInventory when clicked. This can be used for things like next/previous page buttons in a paginated GUI.

Link copied to clipboard
class SimpleItemProvider(item: ItemStack) : AbstractItemProvider

A simple ItemProvider that always returns the same item and does nothing when clicked. This can be used for static items in the GUI that don't need to do anything when clicked, such as decorative items or placeholders.