For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /server/types/BlockStateArg.md.

Type Alias: BlockStateArg<T>

block

BlockStateArg<T> = T extends `${MinecraftBlockTypes}` ? T extends keyof BlockStateMapping ? BlockStateMapping[T] : never : Record<string, boolean | number | string>

Beta

BlockPermutation 的 matches 与 resolve 函数使用的类型别名, 用于将方块状态参数类型收窄到 由 @minecraft/vanilla-data.BlockStateMapping 映射出来的类型。

Type alias used by the BlockPermutation matches and resolve functions to narrow block state argument types to those mapped by @minecraft/vanilla-data.BlockStateMapping.

Type Parameters

T

T

同领域相关