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.
@FunctionalInterface public interface TranslationArgumentLike extends ComponentLike
Represents anything that can be represented as a non-Component
TranslationArgument
.- Since:
- 4.15.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default @NotNull Component
asComponent()
Gets aComponent
representation.@NotNull TranslationArgument
asTranslationArgument()
Get the argument representation of this object.
-
-
-
Method Detail
-
asTranslationArgument
@NotNull @NotNull TranslationArgument asTranslationArgument()
Get the argument representation of this object.- Returns:
- the argument representation
- Since:
- 4.15.0
-
asComponent
@NotNull default @NotNull Component asComponent()
Description copied from interface:ComponentLike
Gets aComponent
representation.- Specified by:
asComponent
in interfaceComponentLike
- Returns:
- a component
-
-