Class LanguageDefinition

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

@Environment(CLIENT) public class LanguageDefinition extends Object implements com.mojang.bridge.game.Language, Comparable<LanguageDefinition>
Mappings:
Namespace Name
official fjc
intermediary net/minecraft/class_1077
named net/minecraft/client/resource/language/LanguageDefinition
  • Field Details

    • code

      private final String code
      Mappings:
      Namespace Name Mixin selector
      official a Lfjc;a:Ljava/lang/String;
      intermediary field_5326 Lnet/minecraft/class_1077;field_5326:Ljava/lang/String;
      named code Lnet/minecraft/client/resource/language/LanguageDefinition;code:Ljava/lang/String;
    • region

      private final String region
      Mappings:
      Namespace Name Mixin selector
      official b Lfjc;b:Ljava/lang/String;
      intermediary field_5329 Lnet/minecraft/class_1077;field_5329:Ljava/lang/String;
      named region Lnet/minecraft/client/resource/language/LanguageDefinition;region:Ljava/lang/String;
    • name

      private final String name
      Mappings:
      Namespace Name Mixin selector
      official c Lfjc;c:Ljava/lang/String;
      intermediary field_5327 Lnet/minecraft/class_1077;field_5327:Ljava/lang/String;
      named name Lnet/minecraft/client/resource/language/LanguageDefinition;name:Ljava/lang/String;
    • rightToLeft

      private final boolean rightToLeft
      Mappings:
      Namespace Name Mixin selector
      official d Lfjc;d:Z
      intermediary field_5328 Lnet/minecraft/class_1077;field_5328:Z
      named rightToLeft Lnet/minecraft/client/resource/language/LanguageDefinition;rightToLeft:Z
  • Constructor Details

    • LanguageDefinition

      public LanguageDefinition(String code, String region, String name, boolean rightToLeft)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lfjc;<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)V
      intermediary <init> Lnet/minecraft/class_1077;<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)V
      named <init> Lnet/minecraft/client/resource/language/LanguageDefinition;<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)V
  • 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
    • isRightToLeft

      public boolean isRightToLeft()
      Mappings:
      Namespace Name Mixin selector
      official a Lfjc;a()Z
      intermediary method_4672 Lnet/minecraft/class_1077;method_4672()Z
      named isRightToLeft Lnet/minecraft/client/resource/language/LanguageDefinition;isRightToLeft()Z
    • toString

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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
      Mappings:
      Namespace Name Mixin selector
      official equals Lfjc;equals(Ljava/lang/Object;)Z
      intermediary equals Lnet/minecraft/class_1077;equals(Ljava/lang/Object;)Z
      named equals Lnet/minecraft/client/resource/language/LanguageDefinition;equals(Ljava/lang/Object;)Z
    • hashCode

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

      public int compareTo(LanguageDefinition languageDefinition)
      Specified by:
      compareTo in interface Comparable<LanguageDefinition>
      Mappings:
      Namespace Name Mixin selector
      official a Lfjc;a(Lfjc;)I
      intermediary method_4673 Lnet/minecraft/class_1077;method_4673(Lnet/minecraft/class_1077;)I
      named compareTo Lnet/minecraft/client/resource/language/LanguageDefinition;compareTo(Lnet/minecraft/client/resource/language/LanguageDefinition;)I