Package net.kyori.adventure.text
Interface TranslationArgumentLike
- All Superinterfaces:
ComponentLike
- All Known Subinterfaces:
TranslationArgument
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Represents anything that can be represented as a non-
Component
TranslationArgument
.- Since:
- 4.15.0
-
Method Summary
Modifier and TypeMethodDescriptiondefault @NotNull Component
Gets aComponent
representation.@NotNull TranslationArgument
Get the argument representation of this object.
-
Method Details
-
asTranslationArgument
Get the argument representation of this object.- Returns:
- the argument representation
- Since:
- 4.15.0
-
asComponent
Description copied from interface:ComponentLike
Gets aComponent
representation.- Specified by:
asComponent
in interfaceComponentLike
- Returns:
- a component
-