You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			57 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			Java
		
	
			
		
		
	
	
			57 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			Java
		
	
package net.minecraft.client.resources;
 | 
						|
 | 
						|
import cpw.mods.fml.relauncher.Side;
 | 
						|
import cpw.mods.fml.relauncher.SideOnly;
 | 
						|
 | 
						|
@SideOnly(Side.CLIENT)
 | 
						|
public class Language implements Comparable
 | 
						|
{
 | 
						|
    private final String languageCode;
 | 
						|
    private final String region;
 | 
						|
    private final String name;
 | 
						|
    private final boolean bidirectional;
 | 
						|
    private static final String __OBFID = "CL_00001095";
 | 
						|
 | 
						|
    public Language(String p_i1303_1_, String p_i1303_2_, String p_i1303_3_, boolean p_i1303_4_)
 | 
						|
    {
 | 
						|
        this.languageCode = p_i1303_1_;
 | 
						|
        this.region = p_i1303_2_;
 | 
						|
        this.name = p_i1303_3_;
 | 
						|
        this.bidirectional = p_i1303_4_;
 | 
						|
    }
 | 
						|
 | 
						|
    public String getLanguageCode()
 | 
						|
    {
 | 
						|
        return this.languageCode;
 | 
						|
    }
 | 
						|
 | 
						|
    public boolean isBidirectional()
 | 
						|
    {
 | 
						|
        return this.bidirectional;
 | 
						|
    }
 | 
						|
 | 
						|
    public String toString()
 | 
						|
    {
 | 
						|
        return String.format("%s (%s)", new Object[] {this.name, this.region});
 | 
						|
    }
 | 
						|
 | 
						|
    public boolean equals(Object p_equals_1_)
 | 
						|
    {
 | 
						|
        return this == p_equals_1_ ? true : (!(p_equals_1_ instanceof Language) ? false : this.languageCode.equals(((Language)p_equals_1_).languageCode));
 | 
						|
    }
 | 
						|
 | 
						|
    public int hashCode()
 | 
						|
    {
 | 
						|
        return this.languageCode.hashCode();
 | 
						|
    }
 | 
						|
 | 
						|
    public int compareTo(Language p_compareTo_1_)
 | 
						|
    {
 | 
						|
        return this.languageCode.compareTo(p_compareTo_1_.languageCode);
 | 
						|
    }
 | 
						|
 | 
						|
    public int compareTo(Object p_compareTo_1_)
 | 
						|
    {
 | 
						|
        return this.compareTo((Language)p_compareTo_1_);
 | 
						|
    }
 | 
						|
} |