Skip to content

Commit a60e136

Browse files
committed
feat(api): Make ComponentLike extends ComponentBuilderApplicable
1 parent fcbe3f8 commit a60e136

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

api/src/main/java/net/kyori/adventure/text/ComponentLike.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
* @since 4.0.0
4040
*/
4141
@FunctionalInterface
42-
public interface ComponentLike {
42+
public interface ComponentLike extends ComponentBuilderApplicable {
4343
/**
4444
* Converts a list of {@link ComponentLike}s to a list of {@link Component}s.
4545
*
@@ -110,4 +110,10 @@ public interface ComponentLike {
110110
*/
111111
@Contract(pure = true)
112112
@NotNull Component asComponent();
113+
114+
@Override
115+
@SuppressWarnings("FunctionalInterfaceMethodChanged")
116+
default void componentBuilderApply(final @NotNull ComponentBuilder<?, ?> component) {
117+
this.asComponent().componentBuilderApply(component);
118+
}
113119
}

0 commit comments

Comments
 (0)