@ SuppressWarnings ( "unchecked" ) public SebListener disable ( Class < ? extends SebEvent > ... events ) { if ( events != null ) { enabledEvents = null ; if ( disabledEvents == null ) disabledEvents = new HashSet <> ( ) ; for ( Class < ? extends SebEvent > event : events ) { disabledEvents . add ( event ) ; } } return this ; }
Disables specific events only . It overrides all enabled events .