void toPlainText(StringBuilder builder) { if ( extra != null ) { for ( BaseComponent e : extra ) { e.toPlainText( builder ); } } }
@Override protected void toPlainText(StringBuilder builder) { builder.append( text ); super.toPlainText( builder ); }
/** * Converts the component into a string without any formatting * * @return the string as plain text */ public String toPlainText() { StringBuilder builder = new StringBuilder(); toPlainText( builder ); return builder.toString(); }
/** * Converts the components into a string without any formatting * * @param components the components to convert * @return the string as plain text */ public static String toPlainText(BaseComponent... components) { StringBuilder builder = new StringBuilder(); for ( BaseComponent msg : components ) { builder.append( msg.toPlainText() ); } return builder.toString(); }
@Override protected void toPlainText(StringBuilder builder) { builder.append( getKeybind() ); super.toPlainText( builder ); }
case 'd': String withIndex = matcher.group( 1 ); with.get( withIndex != null ? Integer.parseInt( withIndex ) - 1 : i++ ).toPlainText( builder ); break; case '%': super.toPlainText( builder );
void toPlainText(StringBuilder builder) { if ( extra != null ) { for ( BaseComponent e : extra ) { e.toPlainText( builder ); } } }
@Override protected void toPlainText(StringBuilder builder) { builder.append( text ); super.toPlainText( builder ); }
/** * Converts the component into a string without any formatting * * @return the string as plain text */ public String toPlainText() { StringBuilder builder = new StringBuilder(); toPlainText( builder ); return builder.toString(); }
/** * Converts the components into a string without any formatting * * @param components the components to convert * @return the string as plain text */ public static String toPlainText(BaseComponent... components) { StringBuilder builder = new StringBuilder(); for ( BaseComponent msg : components ) { builder.append( msg.toPlainText() ); } return builder.toString(); }
case 'd': String withIndex = matcher.group( 1 ); with.get( withIndex != null ? Integer.parseInt( withIndex ) - 1 : i++ ).toPlainText( builder ); break; case '%': super.toPlainText( builder );