@Test public void testMultipleStyle() { Component component = TextParsers.LEGACY.parse(ChatColor.COLOR_CHAR + "l" + ChatColor.COLOR_CHAR + "mfoo"); TextComponent expected = TextComponent.of("foo").decoration(TextDecoration.BOLD, true).decoration(TextDecoration.STRIKETHROUGH, true); Assert.assertEquals(expected, component); }
@Override public Component parse(String source) { return ComponentParser.from(source); }
LegacyParser implements TextParser { @Override public Component parse(String source) { return ComponentParser.from(source); } }
LegacyParser implements TextParser { @Override public Component parse(String source) { return ComponentParser.from(source); }  }
LegacyParser implements TextParser { @Override public Component parse(String source) { return ComponentParser.from(source); }  @Override Component parse(String source); }
LegacyParser implements TextParser { @Override public Component parse(String source) { return ComponentParser.from(source); }  @Override Component parse(String source);  }