@Test public void testMissingPlaceholdersAdded() { TranslatableComponent testComponent = new TranslatableComponent( "Test string with %s placeholders: %s", 2, "aoeu" ); Assert.assertEquals( "Test string with 2 placeholders: aoeu", testComponent.toPlainText() ); Assert.assertEquals( "§fTest string with §f2§f placeholders: §faoeu", testComponent.toLegacyText() ); }
@Override protected void toPlainText(StringBuilder builder) { convert( builder, false ); super.toPlainText( builder ); }
TranslatableComponent extends BaseComponent { @Override protected void toPlainText(StringBuilder builder) { convert( builder, false ); super.toPlainText( builder ); } }
TranslatableComponent extends BaseComponent { @Override protected void toPlainText(StringBuilder builder) { convert( builder, false ); super.toPlainText( builder ); } TranslatableComponent(TranslatableComponent original);  TranslatableComponent(String translate, Object... with); }
TranslatableComponent extends BaseComponent { @Override protected void toPlainText(StringBuilder builder) { convert( builder, false ); super.toPlainText( builder ); } TranslatableComponent(TranslatableComponent original);  TranslatableComponent(String translate, Object... with); @Override TranslatableComponent duplicate(); void setWith(List<BaseComponent> components); void addWith(String text); void addWith(BaseComponent component); }
TranslatableComponent extends BaseComponent { @Override protected void toPlainText(StringBuilder builder) { convert( builder, false ); super.toPlainText( builder ); } TranslatableComponent(TranslatableComponent original);  TranslatableComponent(String translate, Object... with); @Override TranslatableComponent duplicate(); void setWith(List<BaseComponent> components); void addWith(String text); void addWith(BaseComponent component);  }