GUI API
This page is generated from a recorded Java binding inventory. Supported means an official script uses the member; it does not mean the member has passed focused and live acceptance testing.
| Member | Stability | Verification | AI-runnable | Official use | Purpose |
|---|---|---|---|---|---|
click | Supported | bound | No | Yes | Click a slot |
click_item | Supported | bound | No | Yes | Find and click item |
click_item_by_lore | Experimental | bound | No | No | Find and click item by lore |
close | Supported | bound | No | Yes | Close current GUI (delegates to gui_close command) |
debug | Experimental | bound | No | No | Debug GUI info |
find | Experimental | bound | No | No | Find item in GUI |
find_by_relation | Experimental | bound | No | No | Find item by position relation |
get_container_size | Experimental | bound | No | No | Returns number of container slots (excludes player inv) |
get_hovered_item | Experimental | bound | No | No | Get item under cursor (moved from actions) |
get_slot_info | Supported | bound | No | Yes | Returns a Lua table with full slot details |
get_slots | Supported | bound | No | Yes | Bulk scan returning array of slot info tables |
get_title | Supported | bound | No | Yes | Get current GUI title |
has_title | Supported | bound | No | Yes | Check if current GUI title contains pattern |
is_open | Supported | bound | No | Yes | Check if any GUI is open |
open | Experimental | bound | No | No | Open inventory |
poll_slot_changes | Supported | bound | No | Yes | Returns array of {slot, type, name, has_foil} changes |
safe_mode | Supported | bound | No | Yes | STOP ALL activity before GUI interaction CRITICAL: Call this before ANY GUI operation to ensure player is completely still |
stop_watching | Supported | bound | No | Yes | Stop the slot watcher |
switch_hotbar | Experimental | bound | No | No | Switch hotbar slot |
wait_for | Supported | bound | No | Yes | Wait for GUI |
watch_slots | Supported | bound | No | Yes | Start watching slots on main thread for changes |