v26.3-Alpha.1
Pre-release
Pre-release
·
1 commit
to main
since this release
Despotes v26.3-Alpha.1 — Inventory Action & Equipment / 物品栏操作与装备
English
The first release of the v26.3 line introduces programmatic inventory manipulation and armor equipment management.
New actions
inventory-action — slot manipulation in open container menus
{"type":"inventory-action","op":"quickMove","slot":41}Six operations:
moveSlot: pick up fromfromSlot, place attoSlot(pickup + pickup)quickMove: shift-click a slot (auto-routes armor to the correct armor slot)drop: click outside to drop —stack:truedrops entire stack,stack:falsedrops onesplit: right-click to split a stack in halfswap: swap a slot with a hotbar slot (SWAP click type, button = hotbar 0-8)pickup: basic left/right click on a slot
equip — armor equip/unequip
{"type":"equip","op":"equip","piece":"chestplate","slot":41}
{"type":"equip","op":"unequip","piece":"helmet"}Supports: helmet (slot 5), chestplate (slot 6), leggings (slot 7), boots (slot 8).
Uses pickup+place at the InventoryMenu armor slots.
Implementation
IGamePlatform.slotClick(): cross-version reflective container slot click- 26.x:
MultiPlayerGameMode.handleContainerInput(containerId, slot, button, ContainerInput, Player) - 1.20.x/1.21.x:
handleInventoryMouseClick(containerId, slot, button, ClickType, Player) - Fallback:
AbstractContainerMenu.clicked()directly
- 26.x:
Playersuperclass resolved for method lookup (methods declarePlayer, notLocalPlayer)
Verification (tested before release)
- Fabric 26.2 (MC 26.2) runtime:
quickMoveon iron_helmet slot 41 → moved to armor slot 5 (armor 0→2)dropon iron_chestplate → removed from inventoryspliton dirt stack 64 → halved to 32swapwith hotbar slot 1 → items exchangedequip chestplatefrom slot 41 → armor slot 6 (armor 2→8)pickupbasic click → worksmoveSlotpickup+place → works
Assets (8 of 14; neoforge/forge/aprism pending)
- Despotes-v26.3-Alpha.1-fabric-26.2.jar
- Despotes-fabric-1.21.4-v26.3-Alpha.1-fabric-1.21.4.jar
- Despotes-fabric-1.21.1-v26.3-Alpha.1-fabric-1.21.1.jar
- Despotes-fabric-1.20.1-v26.3-Alpha.1-fabric-1.20.1.jar
- Despotes-v26.3-Alpha.1-native-26.2.jar
- Despotes-v26.3-Alpha.1-native-1.21.4.jar
- Despotes-v26.3-Alpha.1-native-1.21.1.jar
- Despotes-v26.3-Alpha.1-native-1.20.1.jar
中文
v26.3 系列首版引入编程式物品栏操作和装备管理。
新动作
inventory-action — 容器菜单槽位操作
六种操作:moveSlot(移动槽位)、quickMove(shift点击自动路由)、drop(丢弃)、split(右键分半)、swap(与热栏交换)、pickup(基础点击)。
equip — 装备穿脱
支持 helmet/chestplate/leggings/boots,通过 pickup+place 操作 InventoryMenu 护甲槽(5-8)。
验证
在 fabric-26.2(MC 26.2)上实测:quickMove 装备头盔(护甲 0→2)、drop 丢弃物品、split 泥土 64→32、swap 交换热栏、equip 胸甲(护甲 2→8)全部通过。