Skip to main content

Inventory 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.

MemberStabilityVerificationAI-runnableOfficial usePurpose
closeExperimentalboundNoNoclose current GUI (delegates to gui_close command)
containsSupportedboundNoYescheck if hotbar contains item
count_itemsSupportedboundNoYescount total items matching pattern across entire inventory
find_slotSupportedboundNoYesfind hotbar slot matching pattern
get_hotbar_itemsSupportedboundNoYesget all hotbar item names
held_itemExperimentalboundNoNoHeld Item
held_slotExperimentalboundNoNoHeld Slot
is_fullSupportedboundNoYescheck if inventory is full (moved from conditions)
openExperimentalboundNoNoopen player inventory
select_slotSupportedboundNoYesselect hotbar slot (moved from world.select_hotbar_slot)