实验性
Represents a block component that provides access to recipe crafting.
只读
Block instance that this component pertains to.
Returns whether the component is valid. A component is considered valid if its owner is valid, in addition to any addition to any additional validation required by the component.
Returns an array of all players currently interacting with this block.
Identifier of the component.
静态
The player for whom to retrieve the crafting context.
The current recipe crafting context for the player, or undefined if the player isn't crafting.
Gets the recipe crafting context for a player interacting with this block.
This function can throw errors.
EngineError
InvalidEntityError
Represents a block component that provides access to recipe crafting.