Class TranslatableCaption
java.lang.Object
com.plotsquared.core.configuration.caption.TranslatableCaption
- All Implemented Interfaces:
Caption,NamespacedCaption
Caption that is user modifiable
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionboolean@NonNull StringgetComponent(@NonNull LocaleHolder localeHolder)Get the message that should be sent to the recipient@NonNull StringgetKey()Get the key that identifies this caption@NonNull StringGet the namespace that this caption belongs tointhashCode()static @NonNull TranslatableCaptionGet a newTranslatableCaptioninstancestatic @NonNull TranslatableCaptionGet a newTranslatableCaptioninstance
-
Field Details
-
DEFAULT_NAMESPACE
Default caption namespace- See Also:
- Constant Field Values
-
-
Method Details
-
of
Get a newTranslatableCaptioninstance- Parameters:
rawKey- Caption key in the format namespace:key. If no namespace is included,DEFAULT_NAMESPACEwill be used.- Returns:
- Caption instance
-
of
Get a newTranslatableCaptioninstance- Parameters:
namespace- Caption namespacekey- Caption key- Returns:
- Caption instance
-
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
-
getKey
Description copied from interface:NamespacedCaptionGet the key that identifies this caption- Specified by:
getKeyin interfaceNamespacedCaption- Returns:
- Caption key
-
getNamespace
Description copied from interface:NamespacedCaptionGet the namespace that this caption belongs to- Specified by:
getNamespacein interfaceNamespacedCaption- Returns:
- Namespace
-
equals
-
hashCode
public int hashCode()
-