Package net.minecraft.util
Class StringTranslate
- java.lang.Object
-
- net.minecraft.util.StringTranslate
-
public class StringTranslate extends java.lang.Object
+ This portion of EaglercraftX contains deobfuscated Minecraft 1.8 source code. Minecraft 1.8.8 bytecode is (c) 2015 Mojang AB. "Do not distribute!" Mod Coder Pack v9.18 deobfuscation configs are (c) Copyright by the MCP Team EaglercraftX 1.8 patch files are (c) 2022-2023 LAX1DUDE. All Rights Reserved. WITH THE EXCEPTION OF PATCH FILES, MINIFIED JAVASCRIPT, AND ALL FILES NORMALLY FOUND IN AN UNMODIFIED MINECRAFT RESOURCE PACK, YOU ARE NOT ALLOWED TO SHARE, DISTRIBUTE, OR REPURPOSE ANY FILE USED BY OR PRODUCED BY THE SOFTWARE IN THIS REPOSITORY WITHOUT PRIOR PERMISSION FROM THE PROJECT AUTHOR. NOT FOR COMMERCIAL OR MALICIOUS USE (please read the 'LICENSE' file this repo's root directory for more info)
-
-
Constructor Summary
Constructors Constructor Description StringTranslate()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
doCLINIT()
long
getLastUpdateTimeInMilliseconds()
+ Gets the time, in milliseconds since epoch, that this instance was last updatedboolean
isKeyTranslated(java.lang.String key)
+ Returns true if the passed key is in the translation table.static void
replaceWith(java.util.Map<java.lang.String,java.lang.String> parMap)
+ Replaces all the current instance's translations with the ones that are passed in.java.lang.String
translateKey(java.lang.String key)
+ Translate a key to current language.java.lang.String
translateKeyFormat(java.lang.String key, java.lang.Object... format)
+ Translate a key to current language applying String.format()
-
-
-
Method Detail
-
doCLINIT
public static void doCLINIT()
-
replaceWith
public static void replaceWith(java.util.Map<java.lang.String,java.lang.String> parMap)
+ Replaces all the current instance's translations with the ones that are passed in.
-
translateKey
public java.lang.String translateKey(java.lang.String key)
+ Translate a key to current language.
-
translateKeyFormat
public java.lang.String translateKeyFormat(java.lang.String key, java.lang.Object... format)
+ Translate a key to current language applying String.format()
-
isKeyTranslated
public boolean isKeyTranslated(java.lang.String key)
+ Returns true if the passed key is in the translation table.
-
getLastUpdateTimeInMilliseconds
public long getLastUpdateTimeInMilliseconds()
+ Gets the time, in milliseconds since epoch, that this instance was last updated
-
-