@Test void testMake_content() { final KeybindComponent component = KeybindComponent.make("key.jump", builder -> builder.color(TextColor.DARK_PURPLE)); assertEquals("key.jump", component.keybind()); assertEquals(TextColor.DARK_PURPLE, component.color()); }
@Test void testMake() { final KeybindComponent component = KeybindComponent.make(builder -> { builder.keybind("key.jump"); builder.color(TextColor.DARK_PURPLE); }); assertEquals("key.jump", component.keybind()); assertEquals(TextColor.DARK_PURPLE, component.color()); }