Package net.minecraft.locale
Class Language
- java.lang.Object
-
- net.minecraft.locale.Language
-
- All Implemented Interfaces:
@Client ResourceReloadListener
public class Language extends java.lang.Object implements @Client ResourceReloadListener
-
-
Field Summary
Fields Modifier and Type Field Description static ResourceLocation
RELOAD_ID
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description @Client java.lang.String
getCurrentLanguage()
ResourceLocation
getId()
static Language
getInstance()
@Client java.util.TreeMap<java.lang.String,java.lang.String>
getLanguageList()
static @net.minecraft.modding.api.Side.Client boolean
isBidrectional(java.lang.String var0)
@net.minecraft.modding.api.Side.Client boolean
isUnicode()
void
onReload(ResourceManager manager)
void
setLanguage(java.lang.String var1)
java.lang.String
translateKey(java.lang.String var1)
java.lang.String
translateKeyFormat(java.lang.String var1, java.lang.Object... var2)
java.lang.String
translateKeyOrNull(java.lang.String key)
@Client java.lang.String
translateNamedKey(java.lang.String var1)
java.lang.String
translateTooltip(java.lang.String key)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.minecraft.modding.api.game.client.resources.ResourceReloadListener
getDependencies
-
-
-
-
Field Detail
-
RELOAD_ID
public static final ResourceLocation RELOAD_ID
-
-
Method Detail
-
getInstance
public static Language getInstance()
-
getLanguageList
@Client public @Client java.util.TreeMap<java.lang.String,java.lang.String> getLanguageList()
-
setLanguage
public void setLanguage(java.lang.String var1)
-
getId
public ResourceLocation getId()
- Specified by:
getId
in interface@Client ResourceReloadListener
-
onReload
@Client public void onReload(ResourceManager manager) throws java.lang.Exception
- Specified by:
onReload
in interface@Client ResourceReloadListener
- Throws:
java.lang.Exception
-
isUnicode
@Client public @net.minecraft.modding.api.Side.Client boolean isUnicode()
-
translateKey
public java.lang.String translateKey(java.lang.String var1)
-
translateKeyOrNull
public java.lang.String translateKeyOrNull(java.lang.String key)
-
translateKeyFormat
public java.lang.String translateKeyFormat(java.lang.String var1, java.lang.Object... var2)
-
translateTooltip
public java.lang.String translateTooltip(java.lang.String key)
-
isBidrectional
@Client public static @net.minecraft.modding.api.Side.Client boolean isBidrectional(java.lang.String var0)
-
-