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 recipient@NonNull net.kyori.adventure.text.ComponenttoComponent(@NonNull LocaleHolder localeHolder) Get the AdventureComponentLikefor this caption@NonNull net.kyori.adventure.text.ComponenttoComponent(@NonNull LocaleHolder localeHolder, @NonNull net.kyori.adventure.text.minimessage.tag.resolver.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 net.kyori.adventure.text.Component toComponent(@NonNull LocaleHolder localeHolder, @NonNull net.kyori.adventure.text.minimessage.tag.resolver.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
-