Interface: PlayerBreakingBlockEventOptions
event player blockBeta
Preview
传递给 PlayerStartBreakingBlockAfterEventSignal.subscribe 或 PlayerCancelBreakingBlockAfterEventSignal.subscribe 的接口,用于过滤哪些事件会传递给所提供的回调函数。
An interface that is passed into PlayerStartBreakingBlockAfterEventSignal.subscribe or PlayerCancelBreakingBlockAfterEventSignal.subscribe that filters out which events are passed to the provided callback.
Properties
blockFilter?
optionalblockFilter?:BlockFilter
Beta
Remarks
回调函数应针对的 BlockFilter。如果未定义,回调函数将针对所有方块被调用。
The BlockFilter that the callback should be called for. If undefined, the callback will be called for all blocks.
playerFilter?
optionalplayerFilter?:EntityFilter
Beta
Remarks
回调函数应针对的 EntityFilter。如果未定义,回调函数将针对所有玩家被调用。
The EntityFilter that the callback should be called for. If undefined, the callback will be called for all players.
