is Listening
Returns true if at least one handler is registered for T or any of its supertypes.
if (bus.isListening<PlayerJumpEvent>()) { ... }Content copied to clipboard
Returns true if at least one handler is registered for T or any of its supertypes.
if (networkBus.isListening<PacketReceived>()) { ... }Content copied to clipboard