跳转到正文

inventory_layout API ​

完整接口目录 · 库存与物品用法 · 工具包下载

模块说明 ​

text
Explicit bot inventory layout and per-slot native observation age.

describe_inventory ​

python
def describe_inventory(snapshot: dict, *, max_age_ms: int, at: str | None=None) -> dict

SDK 说明:

text
Project known slots, never fill an unobserved slot with air.

Age is measured against ``at`` (or the host sample time), not a promise that
the inventory remains current. Armour slot 4 exists only in a five-slot
observed shape. Extra equipment is not inferred from the player model.

Neomega · 使用、开发与参考文档