Перейти к основному содержимому

Protocol: LegacyPlayerBreakBlockBeforeEventSignal

class LegacyPlayerBreakBlockBeforeEventSignal(Protocol)

Related API: LegacyPlayerBreakBlockBeforeEvent

Methods

subscribe

def subscribe(self, handler: Callable[[LegacyPlayerBreakBlockBeforeEvent], None]) -> None:

Add a handler. Re-registering the same guest callable is rejected.

Related API: LegacyPlayerBreakBlockBeforeEvent

unsubscribe

def unsubscribe(self, handler: Callable[[LegacyPlayerBreakBlockBeforeEvent], None]) -> None:

Remove a previously registered handler.

Related API: LegacyPlayerBreakBlockBeforeEvent