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 StaticCaption
Create a new static caption from the given texttoComponent
(@NonNull LocaleHolder localeHolder) Get the AdventureComponentLike
for this captiontoComponent
(@NonNull LocaleHolder localeHolder, @NonNull TagResolver @NonNull ... tagResolvers) Get the AdventureComponentLike
for 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:Caption
Get the message that should be sent to the recipient- Specified by:
getComponent
in interfaceCaption
- Parameters:
localeHolder
- Locale holder- Returns:
- Message
-
toComponent
Description copied from interface:Caption
Get the AdventureComponentLike
for this caption- Specified by:
toComponent
in interfaceCaption
- Parameters:
localeHolder
- Locale holder- Returns:
ComponentLike
-
toComponent
public @NonNull Component toComponent(@NonNull LocaleHolder localeHolder, @NonNull TagResolver @NonNull ... tagResolvers) Description copied from interface:Caption
Get the AdventureComponentLike
for this caption while applying customTagResolver
(apart from the defaultcore.prefix
)- Specified by:
toComponent
in interfaceCaption
- Parameters:
localeHolder
- Local holdertagResolvers
- custom tag resolvers to replace placeholders / parameters- Returns:
ComponentLike
-
toString
-