Package-level declarations

Types

Link copied to clipboard
class CustomItem(val item: ItemStack, val id: String)

Represents a custom item that can have event listeners associated with it. These events can be triggered when the item is interacted with in various ways (e.g., left-click, right-click, drop, etc.).

Link copied to clipboard
class CustomItemCommand(commandName: String? = null, configBlock: CustomItemCommand.CommandConfig.() -> Unit = {})

Represents a command that allows giving a registered custom item to a player.

Link copied to clipboard
data class CustomItemDefinition(val id: String, val builder: () -> CustomItem)

Represents a definition for a custom item, including its unique ID and a builder function to create the item.

Link copied to clipboard

Factory object for managing custom items. It allows registering, creating, and retrieving custom items by their IDs.

Link copied to clipboard

Listener object that listens for player interactions with custom items. It ensures that the correct custom item is handled based on the player's interaction.

Link copied to clipboard

A registry for managing custom items by their IDs.

Link copied to clipboard

A utility object to define and retrieve custom items. Custom items are registered by their unique identifier (ID).

Link copied to clipboard
class ItemBuilder(material: Material)

A builder class for creating and customizing ItemStack objects in a flexible manner. Allows setting properties like display name, lore, enchantments, flags, and more.

Functions

Link copied to clipboard

Extension function for String that adds color support using Minecraft's color codes.