Interface MiniMessageTranslationStore
- All Superinterfaces:
TranslationStore<String>, TranslationStore.StringBased<String>, Translator
A MiniMessage translation store.
For documentation on how to use the MiniMessage translation system, see the Javadocs
for MiniMessageTranslator.
- Since:
- 4.20.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface TranslationStore
TranslationStore.StringBased<T> -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic MiniMessageTranslationStoreCreates a MiniMessage translation store, backed by the default MiniMessage instance.static MiniMessageTranslationStorecreate(Key name, MiniMessage miniMessage) Creates a MiniMessage translation store.Methods inherited from interface TranslationStore
canTranslate, contains, contains, defaultLocale, register, registerAll, registerAll, unregisterMethods inherited from interface TranslationStore.StringBased
registerAll, registerAllMethods inherited from interface Translator
hasAnyTranslations, name, translate, translate
-
Method Details
-
create
Creates a MiniMessage translation store, backed by the default MiniMessage instance.- Parameters:
name- the name of the translation store- Returns:
- the translation store
- Since:
- 4.20.0
-
create
Creates a MiniMessage translation store.- Parameters:
name- the name of the translation storeminiMessage- the MiniMessage instance to use for deserialization- Returns:
- the translation store
- Since:
- 4.20.0
-