@ SuppressWarnings ( "unchecked" ) public < E extends IPluginResource > List < E > getResources ( Class < E > clazz ) { List < E > list = new ArrayList <> ( ) ; for ( IPluginResource resource : resources ) { if ( clazz . isInstance ( resource ) ) { list . add ( ( E ) resource ) ; } } return list ; }
Returns the list of plugin resources belonging to the specified resource class . Never null .