Package-level declarations

Types

Link copied to clipboard

A DSL builder for constructing argument command nodes.

Link copied to clipboard
typealias CommandExecutor = (CommandContext<CommandSourceStack>) -> Int

Type alias for a command execution function. Takes a CommandContext and returns an integer result code. A return value of 1 indicates success, 0 indicates failure.

Link copied to clipboard
interface Identifiable

Interface for objects that have an Identifier.

Link copied to clipboard
class KattonItemProperties(val id: Identifier) : Item.Properties, Identifiable

Extended Item.Properties that supports custom name and model with hot-reload capabilities.

Link copied to clipboard

Central registry for Katton mod components.

Link copied to clipboard

A DSL builder for constructing literal command nodes.

Link copied to clipboard

Registration mode for game objects.

Link copied to clipboard

Registry for managing script-defined commands with hot-reload support.

Functions

Link copied to clipboard
fun id(string: String): Identifier

Parses an Identifier from a string in the format "namespace:path".

fun id(namespace: String, path: String): Identifier

Creates an Identifier from a namespace and path.

Link copied to clipboard
fun registerCommand(name: String, block: LiteralCommandDsl.() -> Unit)

Registers a new command with the specified name and configuration block.