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 TypeMethodDescriptiongetComponent(@NonNull LocaleHolder localeHolder) Get the message that should be sent to the recipienttoComponent(@NonNull LocaleHolder localeHolder) Get the AdventureComponentLikefor this captiontoComponent(@NonNull LocaleHolder localeHolder, @NonNull TagResolver @NonNull ... tagResolvers) Get the AdventureComponentLikefor this caption while applying customTagResolver(apart from the defaultcore.prefix)toString()
-
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
-
toComponent
@NonNull Component toComponent(@NonNull LocaleHolder localeHolder, @NonNull TagResolver @NonNull ... tagResolvers) Get the AdventureComponentLikefor this caption while applying customTagResolver(apart from the defaultcore.prefix)- Parameters:
localeHolder- Local holdertagResolvers- custom tag resolvers to replace placeholders / parameters- Returns:
ComponentLike- Since:
- 7.5.4
-
toString
-