类型别名 BlockStateArg<T>实验性

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

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

表示 BlockPermutation 的匹配和解析函数使用的类型别名,用于将方块状态参数类型缩小到由 @minecraft/vanilla-data.BlockStateMapping 映射的类型。

类型参数

  • T