Class StaticCaption
java.lang.Object
com.plotsquared.core.configuration.caption.StaticCaption
- All Implemented Interfaces:
Caption
-
Method Summary
Modifier and TypeMethodDescriptiongetComponent(@NonNull LocaleHolder localeHolder) Get the message that should be sent to the recipientstatic @NonNull StaticCaptionCreate a new static caption from the given texttoComponent(@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
-
of
Create a new static caption from the given text- Parameters:
text- Text- Returns:
- Created caption
-
getComponent
Description copied from interface:CaptionGet the message that should be sent to the recipient- Specified by:
getComponentin interfaceCaption- Parameters:
localeHolder- Locale holder- Returns:
- Message
-
toComponent
Description copied from interface:CaptionGet the AdventureComponentLikefor this caption- Specified by:
toComponentin interfaceCaption- Parameters:
localeHolder- Locale holder- Returns:
ComponentLike
-
toComponent
public @NonNull Component toComponent(@NonNull LocaleHolder localeHolder, @NonNull TagResolver @NonNull ... tagResolvers) Description copied from interface:CaptionGet the AdventureComponentLikefor this caption while applying customTagResolver(apart from the defaultcore.prefix)- Specified by:
toComponentin interfaceCaption- Parameters:
localeHolder- Local holdertagResolvers- custom tag resolvers to replace placeholders / parameters- Returns:
ComponentLike
-
toString
-