Package net.kyori.adventure.text
Interface ComponentLike
- All Known Subinterfaces:
BlockNBTComponent
,BlockNBTComponent.Builder
,BuildableComponent<C,B>
,Component
,ComponentBuilder<C,B>
,EntityNBTComponent
,EntityNBTComponent.Builder
,KeybindComponent
,KeybindComponent.Builder
,NBTComponent<C,B>
,NBTComponentBuilder<C,B>
,ScopedComponent<C>
,ScoreComponent
,ScoreComponent.Builder
,SelectorComponent
,SelectorComponent.Builder
,StorageNBTComponent
,StorageNBTComponent.Builder
,TextComponent
,TextComponent.Builder
,TranslatableComponent
,TranslatableComponent.Builder
- All Known Implementing Classes:
AbstractComponent
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ComponentLike
Something that can be represented as a
Component
.- Since:
- 4.0.0
-
Method Summary
Modifier and Type Method Description @NonNull Component
asComponent()
Gets aComponent
representation.
-
Method Details
-
asComponent
@NonNull Component asComponent()Gets aComponent
representation.- Returns:
- a component
- Since:
- 4.0.0
-