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

Function openBlock

lib/plugins/inventory.js:385–390  ·  view source on GitHub ↗
(block, direction, cursorPos)

Source from the content-addressed store, hash-verified

383 }
384
385 async function openBlock (block, direction, cursorPos) {
386 bot.activateBlock(block, direction, cursorPos)
387 const [window] = await once(bot, 'windowOpen')
388 extendWindow(window)
389 return window
390 }
391
392 async function openEntity (entity) {
393 bot.activateEntity(entity)

Callers

nothing calls this directly

Calls 2

onceFunction · 0.85
extendWindowFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…