input_trigger_config
Player Input Triggers Configuration — misc entry.
Entry Information
| Property | Value |
|---|---|
| Entry ID | input_trigger_config |
| Type | Misc |
| Color | Green |
| Icon | mdi:keyboard |
Description
Enum of all supported input types. Each maps to a Bukkit event that the listener handles. / enum class InputType { /** F key — swap main/off hand / SWAP_HAND, /* Q key — drop item(s) from hand / DROP, /* Shift key / SNEAK, /* Ctrl key / SPRINT, /* T key — chat message / CHAT, /* / key — command / COMMAND, /* Hotbar slot selection (0-8) / HOTBAR_SLOT, } /* Supported click interaction types for inventory buttons. / enum class ClickType { /** Matches ANY click type — acts as fallback if no exact match / ALL, /* Left click (inventory + world left-click) / LEFT, /* Right click (inventory + world right-click) / RIGHT, /* Shift + left click / SHIFT_LEFT, /* Shift + right click / SHIFT_RIGHT, /* Q key drop / DROP, /* Double click / DOUBLE_CLICK, } /* Binds a set of [actions] to a specific [clickType] with optional [criteria]. / data class ClickActionBinding( @Help("The click type that triggers these actions") val clickType: ClickType = ClickType.LEFT, @Help("Actions to execute when this click type is used") val actions: List<Ref<ActionEntry>> = emptyList(), @Help("Criteria that must be met for this binding to fire") val criteria: List<Criteria> = emptyList(), ) /** Configuration entry for InputTrigger extension. Contains a list of input definitions and inventory buttons.
Fields
| Field | Type | Description |
|---|---|---|
keybinds | List<InputDefinition> | Input trigger definitions for triggering actions on player input |
inventoryButtons | List<InventoryButton> | Clickable buttons in the player inventory or crafting grid |
Usage Example
- entry: input_trigger_config
name: "Player Input Triggers Configuration"
keybinds: []
inventoryButtons: []