YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraft.util.StringTranslate Class Reference

Public Member Functions

 StringTranslate (String par1Str)
 
TreeMap getLanguageList ()
 
synchronized void setLanguage (String par1Str, boolean par2)
 
synchronized String translateKey (String par1Str)
 
synchronized String translateKeyFormat (String par1Str, Object...par2ArrayOfObj)
 
String getCurrentLanguage ()
 
boolean isUnicode ()
 
synchronized boolean containsTranslateKey (String par1Str)
 
synchronized String translateNamedKey (String par1Str)
 
synchronized void func_94519_a (String par1Str, File par2File)
 

Static Public Member Functions

static StringTranslate getInstance ()
 
static boolean isBidirectional (String par0Str)
 

Public Attributes

Properties translateTable = new Properties()
 
String currentLanguage
 

Constructor & Destructor Documentation

net.minecraft.util.StringTranslate.StringTranslate ( String  par1Str)

Member Function Documentation

synchronized boolean net.minecraft.util.StringTranslate.containsTranslateKey ( String  par1Str)
synchronized void net.minecraft.util.StringTranslate.func_94519_a ( String  par1Str,
File  par2File 
)
String net.minecraft.util.StringTranslate.getCurrentLanguage ( )
static StringTranslate net.minecraft.util.StringTranslate.getInstance ( )
static

Return the StringTranslate singleton instance

TreeMap net.minecraft.util.StringTranslate.getLanguageList ( )
static boolean net.minecraft.util.StringTranslate.isBidirectional ( String  par0Str)
static
boolean net.minecraft.util.StringTranslate.isUnicode ( )
synchronized void net.minecraft.util.StringTranslate.setLanguage ( String  par1Str,
boolean  par2 
)
synchronized String net.minecraft.util.StringTranslate.translateKey ( String  par1Str)

Translate a key to current language.

synchronized String net.minecraft.util.StringTranslate.translateKeyFormat ( String  par1Str,
Object...  par2ArrayOfObj 
)

Translate a key to current language applying String.format()

synchronized String net.minecraft.util.StringTranslate.translateNamedKey ( String  par1Str)

Translate a key with a extra '.name' at end added, is used by blocks and items.

Member Data Documentation

String net.minecraft.util.StringTranslate.currentLanguage
Properties net.minecraft.util.StringTranslate.translateTable = new Properties()

Contains all key/value pairs to be translated - is loaded from '/lang/en_US.lang' when the StringTranslate is created.


The documentation for this class was generated from the following file: