public void tryRegisterController ( Object object ) { if ( object instanceof IPluginController ) { if ( pluginControllers == null ) { pluginControllers = new ArrayList <> ( ) ; } pluginControllers . add ( ( IPluginController ) object ) ; } }
Registers an object as a controller if it implements the IPluginController interface .