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.

Type Parameters

  • T