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 captiontoString()
-
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
-
toString
-