Class LanguageInfo

java.lang.Object
net.minecraft.client.resources.language.LanguageInfo
All Implemented Interfaces:
com.mojang.bridge.game.Language, Comparable<LanguageInfo>

public class LanguageInfo extends Object implements com.mojang.bridge.game.Language, Comparable<LanguageInfo>
  • Field Details

    • code

      private final String code
    • region

      private final String region
    • name

      private final String name
    • bidirectional

      private final boolean bidirectional
    • javaLocale

      private final Locale javaLocale
  • Constructor Details

    • LanguageInfo

      public LanguageInfo(String p_118948_, String p_118949_, String p_118950_, boolean p_118951_)
  • Method Details

    • getCode

      public String getCode()
      Specified by:
      getCode in interface com.mojang.bridge.game.Language
    • getName

      public String getName()
      Specified by:
      getName in interface com.mojang.bridge.game.Language
    • getRegion

      public String getRegion()
      Specified by:
      getRegion in interface com.mojang.bridge.game.Language
    • isBidirectional

      public boolean isBidirectional()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object p_118958_)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • compareTo

      public int compareTo(LanguageInfo p_118954_)
      Specified by:
      compareTo in interface Comparable<LanguageInfo>
    • getJavaLocale

      public Locale getJavaLocale()