Class PerUserLocaleCaptionMap
java.lang.Object
com.plotsquared.core.configuration.caption.LocalizedCaptionMap
com.plotsquared.core.configuration.caption.PerUserLocaleCaptionMap
- All Implemented Interfaces:
CaptionMap
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.plotsquared.core.configuration.caption.CaptionMap
CaptionMap.NoSuchCaptionException
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets a copy of the set of captions stored in the CaptionMapgetMessage
(@NonNull TranslatableCaption caption, @NonNull LocaleHolder localeHolder) Get a message using a specific localeboolean
supportsLocale
(@NonNull Locale locale) Check if the map supports a given localeMethods inherited from class com.plotsquared.core.configuration.caption.LocalizedCaptionMap
getLocale, getMessage
-
Constructor Details
-
PerUserLocaleCaptionMap
-
-
Method Details
-
supportsLocale
Description copied from interface:CaptionMap
Check if the map supports a given locale- Specified by:
supportsLocale
in interfaceCaptionMap
- Overrides:
supportsLocale
in classLocalizedCaptionMap
- Parameters:
locale
- Locale- Returns:
true
if the map supports the locale
-
getCaptions
Description copied from interface:CaptionMap
Gets a copy of the set of captions stored in the CaptionMap- Specified by:
getCaptions
in interfaceCaptionMap
- Overrides:
getCaptions
in classLocalizedCaptionMap
- Returns:
- An immutable set of TranslatableCaption