Type Alias: BlockStateArg<T>
blockBlockStateArg<
T> =Textends`${MinecraftBlockTypes}`?Textends keyofBlockStateMapping?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
