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 TypeMethodDescriptionboolean
existsWithFallback
(String translationKey) void
finish()
net.minecraft.network.chat.Component
optional
(net.minecraft.network.chat.Component prefix, String translationKey, net.minecraft.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
public net.minecraft.network.chat.Component optional(net.minecraft.network.chat.Component prefix, String translationKey, net.minecraft.ChatFormatting... style) 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()
-