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

Function itemToString

examples/chest.js:375–381  ·  view source on GitHub ↗
(item)

Source from the content-addressed store, hash-verified

373}
374
375function itemToString (item) {
376 if (item) {
377 return `${item.name} x ${item.count}`
378 } else {
379 return '(nothing)'
380 }
381}
382
383function itemByType (items, type) {
384 let item

Callers 7

watchChestFunction · 0.70
watchFurnaceFunction · 0.70
watchEnchantmentTableFunction · 0.70
putItemFunction · 0.70
addLapisFunction · 0.70
enchantItemFunction · 0.70
takeEnchantedItemFunction · 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…