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

Function openEntity

lib/plugins/inventory.js:392–397  ·  view source on GitHub ↗
(entity)

Source from the content-addressed store, hash-verified

390 }
391
392 async function openEntity (entity) {
393 bot.activateEntity(entity)
394 const [window] = await once(bot, 'windowOpen')
395 extendWindow(window)
396 return window
397 }
398
399 function createActionNumber () {
400 nextActionNumber = nextActionNumber === 32767 ? 1 : nextActionNumber + 1

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…