接口 BlockEventOptions实验性

Contains optional parameters for registering a block event.

interface BlockEventOptions {
    blockTypes?: string[];
    permutations?: BlockPermutation[];
}

属性

blockTypes?: string[]

If this value is set, this event will only fire if the impacted block's type matches this parameter.

permutations?: BlockPermutation[]

If this value is set, this event will only fire if the impacted block's permutation matches this parameter.