We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fcbe3f8 commit a60e136Copy full SHA for a60e136
api/src/main/java/net/kyori/adventure/text/ComponentLike.java
@@ -39,7 +39,7 @@
39
* @since 4.0.0
40
*/
41
@FunctionalInterface
42
-public interface ComponentLike {
+public interface ComponentLike extends ComponentBuilderApplicable {
43
/**
44
* Converts a list of {@link ComponentLike}s to a list of {@link Component}s.
45
*
@@ -110,4 +110,10 @@ public interface ComponentLike {
110
111
@Contract(pure = true)
112
@NotNull Component asComponent();
113
+
114
+ @Override
115
+ @SuppressWarnings("FunctionalInterfaceMethodChanged")
116
+ default void componentBuilderApply(final @NotNull ComponentBuilder<?, ?> component) {
117
+ this.asComponent().componentBuilderApply(component);
118
+ }
119
}
0 commit comments