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

Function itemByName

examples/chest.js:393–401  ·  view source on GitHub ↗
(items, name)

Source from the content-addressed store, hash-verified

391}
392
393function itemByName (items, name) {
394 let item
395 let i
396 for (i = 0; i < items.length; ++i) {
397 item = items[i]
398 if (item && item.name === name) return item
399 }
400 return null
401}

Callers 4

withdrawItemFunction · 0.70
depositItemFunction · 0.70
putInFurnaceFunction · 0.70
putItemFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…