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 esq
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 Lesq;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;
    • name

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

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

      private final boolean rightToLeft
      Mappings:
      Namespace Name Mixin selector
      official d Lesq;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 name, String region, boolean rightToLeft)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lesq;<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
      Mappings:
      Namespace Name Mixin selector
      official getCode Lesq;getCode()Ljava/lang/String;
      intermediary getCode Lnet/minecraft/class_1077;getCode()Ljava/lang/String;
      named getCode Lnet/minecraft/client/resource/language/LanguageDefinition;getCode()Ljava/lang/String;
    • getName

      public String getName()
      Specified by:
      getName in interface com.mojang.bridge.game.Language
      Mappings:
      Namespace Name Mixin selector
      official getName Lesq;getName()Ljava/lang/String;
      intermediary getName Lnet/minecraft/class_1077;getName()Ljava/lang/String;
      named getName Lnet/minecraft/client/resource/language/LanguageDefinition;getName()Ljava/lang/String;
    • getRegion

      public String getRegion()
      Specified by:
      getRegion in interface com.mojang.bridge.game.Language
      Mappings:
      Namespace Name Mixin selector
      official getRegion Lesq;getRegion()Ljava/lang/String;
      intermediary getRegion Lnet/minecraft/class_1077;getRegion()Ljava/lang/String;
      named getRegion Lnet/minecraft/client/resource/language/LanguageDefinition;getRegion()Ljava/lang/String;
    • isRightToLeft

      public boolean isRightToLeft()
      Mappings:
      Namespace Name Mixin selector
      official a Lesq;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
      Mappings:
      Namespace Name Mixin selector
      official toString Lesq;toString()Ljava/lang/String;
      intermediary toString Lnet/minecraft/class_1077;toString()Ljava/lang/String;
      named toString Lnet/minecraft/client/resource/language/LanguageDefinition;toString()Ljava/lang/String;
    • equals

      public boolean equals​(Object o)
      Overrides:
      equals in class Object
      Mappings:
      Namespace Name Mixin selector
      official equals Lesq;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
      Mappings:
      Namespace Name Mixin selector
      official hashCode Lesq;hashCode()I
      intermediary hashCode Lnet/minecraft/class_1077;hashCode()I
      named hashCode Lnet/minecraft/client/resource/language/LanguageDefinition;hashCode()I
    • compareTo

      public int compareTo​(LanguageDefinition languageDefinition)
      Specified by:
      compareTo in interface Comparable<LanguageDefinition>
      Mappings:
      Namespace Name Mixin selector
      official a Lesq;a(Lesq;)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