Interface Caption
- All Known Subinterfaces:
NamespacedCaption
- All Known Implementing Classes:
CommandCategory,StaticCaption,TranslatableCaption
public interface Caption
Any message that can be sent to a player, the console, etc.
-
Method Summary
Modifier and TypeMethodDescription@NonNull StringgetComponent(@NonNull LocaleHolder localeHolder) Get the message that should be sent to the recipient@NonNull ComponenttoComponent(@NonNull LocaleHolder localeHolder) Get the AdventureComponentLikefor this caption@NonNull StringtoString()
-
Method Details
-
getComponent
Get the message that should be sent to the recipient- Parameters:
localeHolder- Locale holder- Returns:
- Message
-
toComponent
Get the AdventureComponentLikefor this caption- Parameters:
localeHolder- Locale holder- Returns:
ComponentLike- Since:
- 7.0.0
-
toString
-