API reference / @jsprismarine/prismarine / inventory/blockContainers
inventory/blockContainers
Interfaces
BlockContainer
Defined in: packages/prismarine/src/inventory/blockContainers.ts:58
What a block's screen is, once it has been resolved.
Properties
screen
readonlyscreen:WindowTypes
Defined in: packages/prismarine/src/inventory/blockContainers.ts:60
The Container Type the client draws.
slots
readonlyslots:number
Defined in: packages/prismarine/src/inventory/blockContainers.ts:67
Slots the block stores, from slotsOf.
Zero for a workstation that stores nothing of its own between uses - a crafting table, an anvil, a grindstone - whose slots live in the player's own UI window.
Functions
blockContainerOf()
blockContainerOf(
identifier):BlockContainer|undefined
Defined in: packages/prismarine/src/inventory/blockContainers.ts:89
The screen one block opens, or undefined when it opens none.
Parameters
identifier
string
A namespaced block identifier.
Returns
BlockContainer | undefined