Contains optional parameters for registering a block event.

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

Properties

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.