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;
}

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 ; }
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 .
