Class ConfigurationScreen.TranslationChecker

java.lang.Object
net.neoforged.neoforge.client.gui.ConfigurationScreen.TranslationChecker
Enclosing class:
ConfigurationScreen

public static class ConfigurationScreen.TranslationChecker extends Object
  • Field Details

    • LOGGER

      private static final org.apache.logging.log4j.Logger LOGGER
    • untranslatables

      private final Set<String> untranslatables
    • untranslatablesWithFallback

      private final Set<String> untranslatablesWithFallback
  • Constructor Details

    • TranslationChecker

      public TranslationChecker()
  • Method Details

    • check

      public String check(String translationKey)
    • check

      public String check(String translationKey, String fallback)
    • existsWithFallback

      public boolean existsWithFallback(String translationKey)
    • 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()