@minecraft/server / PlayerBreakBlockAfterEventSignal
Class: PlayerBreakBlockAfterEventSignal ​
Defined in: @minecraft/server/index.d.ts:16991
Manages callbacks that are connected to when a player breaks a block.
Methods ​
subscribe() ​
subscribe(
callback,options?): (arg0) =>void
Defined in: @minecraft/server/index.d.ts:17003
Parameters ​
callback ​
(arg0) => void
options? ​
Returns ​
(arg0) => void
Remarks ​
Adds a callback that will be called when a block is broken by a player.
This function can't be called in restricted-execution mode.
This function can be called in early-execution mode.
unsubscribe() ​
unsubscribe(
callback):void
Defined in: @minecraft/server/index.d.ts:17017
Parameters ​
callback ​
(arg0) => void
Returns ​
void
Remarks ​
Removes a callback from being called when a player breaks a block.
This function can't be called in restricted-execution mode.
This function can be called in early-execution mode.