类型别名 BlockStateArg<T>实验性

BlockStateArg<T>: 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.

类型参数

  • T