Package net.md_5.bungee.api.chat
Interface TranslationProvider
public interface TranslationProvider
An object capable of being translated by the client in a
TranslatableComponent
.-
Method Summary
Modifier and TypeMethodDescriptiondefault TranslatableComponent
Get this translatable object as aTranslatableComponent
.default TranslatableComponent
asTranslatableComponent
(Object... with) Get this translatable object as aTranslatableComponent
.Get the translation key.
-
Method Details
-
getTranslationKey
String getTranslationKey()Get the translation key.- Returns:
- the translation key
-
asTranslatableComponent
Get this translatable object as aTranslatableComponent
.- Returns:
- the translatable component
-
asTranslatableComponent
Get this translatable object as aTranslatableComponent
.- Parameters:
with
- theStrings
andBaseComponents
to use in the translation- Returns:
- the translatable component
-