question: public boolean canBeLegacy ( ) { if ( this . clickEvent != null ) { return false ; } if ( this . hoverEvent != null ) { return false ; } List < BaseComponent > extra = this . extra ; if ( ( extra == null ) || extra . isEmpty ( ) ) { return true ; } for ( BaseComponent component : extra ) { if ( ! component . canBeLegacy ( ) ) { return false ; } } return true ; }
target:  Returns true if this base component can be changed to legacy string without removing any features. <br> Method just check if this component use any events that can't be used in legacy chat format.