背包 / 容器 / slot spoof
int inventory.getSlot() // 当前 hotbar 选中(0-8) void inventory.setSlot(int slot) int inventory.getSize() // 玩家背包总槽数 ItemStack inventory.getStackInSlot(int slot) void inventory.open() // 打开自己背包 GUI
String inventory.getChest() // 当前箱子标题(非箱子空串) int inventory.getChestSize() String inventory.getContainer() // 任意打开容器的标题 ItemStack inventory.getStackInChestSlot(int slot)
inventory.click(int slot, int button, int mode)
mode
List<String> inventory.getBookContents() // 主手 written/writable book 的 pages
void inventory.startSpoof(int slot) // 静默切槽(用户不感知) void inventory.stopSpoof() boolean inventory.isSpoofing() void inventory.switchTo(int slot) // 正常切(用户第一视角会渲染) boolean inventory.switchBack() // 切回 switchTo 之前
Was this page helpful?