Package net.neoforged.neoforge.common
Class I18nExtension
java.lang.Object
net.neoforged.neoforge.common.I18nExtension
- 
Nested Class Summary
Nested Classes - 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetPattern(String patternName, Supplier<String> fallback) static voidloadLanguageData(Map<String, String> properties) private static voidparseException(String formatString, StringBuffer stringBuffer, Object objectToParse) static StringparseFormat(String format, Object... args) static StringparseMessage(String i18nMessage, Object... args) static StringparseMessageWithFallback(String i18nMessage, Supplier<String> fallback, Object... args) private static voidparseModInfo(String formatString, StringBuffer stringBuffer, Object modInfo) static StringstripControlCodes(String text) static StringstripSpecialChars(String message)  
- 
Field Details
- 
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER - 
ALLOWED_CHARS
- See Also:
 
 - 
DISALLOWED_CHAR_MATCHER
private static final com.google.common.base.CharMatcher DISALLOWED_CHAR_MATCHER - 
i18n
 - 
customFactories
 - 
PATTERN_CONTROL_CODE
 
 - 
 - 
Constructor Details
- 
I18nExtension
public I18nExtension() 
 - 
 - 
Method Details
- 
parseException
private static void parseException(String formatString, StringBuffer stringBuffer, Object objectToParse)  - 
parseModInfo
 - 
getPattern
 - 
loadLanguageData
 - 
parseMessage
 - 
parseMessageWithFallback
 - 
parseFormat
 - 
stripSpecialChars
 - 
stripControlCodes
 
 -