接口 BlockFilter实验性

Options to include or exclude blocks based on type, tag or permutation. If no include options are added it will select all blocks that are not rejected by the exclude options. If at least one include option is added the block must match one of the include options to not be rejected.

interface BlockFilter {
    excludePermutations?: BlockPermutation[];
    excludeTags?: string[];
    excludeTypes?: string[];
    includePermutations?: BlockPermutation[];
    includeTags?: string[];
    includeTypes?: string[];
}

层级 (查看完整内容)

属性

excludePermutations?: BlockPermutation[]

Array of block permutations that the filter should reject if any matches.

excludeTags?: string[]

Array of block tags that the filter should reject if any matches.

excludeTypes?: string[]

Array of block types that the filter should reject if any matches.

includePermutations?: BlockPermutation[]

Array of block permutations that the filter should select if at least one matches.

includeTags?: string[]

Array of block tags that the filter should select if at least one matches.

includeTypes?: string[]

Array of block types that the filter should select if at least one matches.