Protocol: PlayerBreakBlockBeforeEventSignal
class PlayerBreakBlockBeforeEventSignal(Protocol)
Related API: PlayerBreakBlockBeforeEvent
Methods
subscribe
def subscribe(self, handler: Callable[[PlayerBreakBlockBeforeEvent], None]) -> None:
Add a handler. Re-registering the same guest callable is rejected.
Related API: PlayerBreakBlockBeforeEvent
unsubscribe
def unsubscribe(self, handler: Callable[[PlayerBreakBlockBeforeEvent], None]) -> None:
Remove a previously registered handler.
Related API: PlayerBreakBlockBeforeEvent