Class ConfigurationScreen.TranslationChecker
java.lang.Object
net.neoforged.neoforge.client.gui.ConfigurationScreen.TranslationChecker
- Enclosing class:
ConfigurationScreen
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.apache.logging.log4j.Logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanexistsWithFallback(String translationKey) voidfinish()optional(Component prefix, String translationKey, ChatFormatting... style) If the given translation key exists, returns it formatted with the given style(s) and as prefixed with the given component.
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
untranslatables
-
untranslatablesWithFallback
-
-
Constructor Details
-
TranslationChecker
public TranslationChecker()
-
-
Method Details
-
check
-
check
-
existsWithFallback
-
optional
If the given translation key exists, returns it formatted with the given style(s) and as prefixed with the given component. Otherwise returns an empty Component. -
finish
public void finish()
-