Class NotTranslatableText
java.lang.Object
velox.gui.utils.localization.translatable.NotTranslatableText
- All Implemented Interfaces:
TranslatableComponent
A simple class that accepts any String and implements the
TranslatableComponent interface.
Always returns the same passed text regardless of locale.
Use it if you need to pass TranslatableComponent but the text contained in TranslatableComponent does not require localization-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface velox.gui.utils.localization.translatable.TranslatableComponent
toDefaultString, toLocalizedString
-
Constructor Details
-
NotTranslatableText
-
-
Method Details
-
toLocalizedString
- Specified by:
toLocalizedStringin interfaceTranslatableComponent- Returns:
- localized string in specific locale
-