op Mode
Null check consumer for the opMode field which will no-op the given consumer if an active BunyipsOpMode is not present (i.e. the opMode field is null). This method is the same to the BunyipsOpMode.ifRunning
method, and is supplied here for convenience.
Since
5.1.0
Parameters
if Running
the BunyipsOpMode consumer to run if the OpMode is active
Get a reference to the currently running BunyipsOpMode.
Will be null if this component is not running in the context of an active BunyipsOpMode.