MCPcopy
hub / github.com/PrismarineJS/mineflayer / putAway

Function putAway

lib/plugins/inventory.js:648–656  ·  view source on GitHub ↗
(slot)

Source from the content-addressed store, hash-verified

646 }
647
648 async function putAway (slot) {
649 const window = bot.currentWindow || bot.inventory
650 const promisePutAway = once(window, `updateSlot:${slot}`)
651 await clickWindow(slot, 0, 0)
652 const start = window.inventoryStart
653 const end = window.inventoryEnd
654 await putSelectedItemRange(start, end, window, null)
655 await promisePutAway
656 }
657
658 async function moveSlotItem (sourceSlot, destSlot) {
659 await clickWindow(sourceSlot, 0, 0)

Callers

nothing calls this directly

Calls 3

onceFunction · 0.85
clickWindowFunction · 0.85
putSelectedItemRangeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…