Record Class LanguageDefinition

java.lang.Object
java.lang.Record
net.minecraft.client.resource.language.LanguageDefinition
Record Components:
region -
name -
rightToLeft -

@Environment(CLIENT) public record LanguageDefinition(String region, String name, boolean rightToLeft) extends Record
Mappings:
Namespace Name
official fwa
intermediary net/minecraft/class_1077
named net/minecraft/client/resource/language/LanguageDefinition
official b
intermediary comp_1198
named region
official c
intermediary comp_1199
named name
official d
intermediary comp_1200
named rightToLeft
  • Field Details

    • region

      private final String region
      The field for the region record component.
    • name

      private final String name
      The field for the name record component.
    • rightToLeft

      private final boolean rightToLeft
      The field for the rightToLeft record component.
    • CODEC

      public static final com.mojang.serialization.Codec<LanguageDefinition> CODEC
      Mappings:
      Namespace Name Mixin selector
      official a Lfwa;a:Lcom/mojang/serialization/Codec;
      intermediary field_41862 Lnet/minecraft/class_1077;field_41862:Lcom/mojang/serialization/Codec;
      named CODEC Lnet/minecraft/client/resource/language/LanguageDefinition;CODEC:Lcom/mojang/serialization/Codec;
  • Constructor Details

    • LanguageDefinition

      public LanguageDefinition(String code, String region, boolean bool)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lfwa;<init>(Ljava/lang/String;Ljava/lang/String;Z)V
      intermediary <init> Lnet/minecraft/class_1077;<init>(Ljava/lang/String;Ljava/lang/String;Z)V
      named <init> Lnet/minecraft/client/resource/language/LanguageDefinition;<init>(Ljava/lang/String;Ljava/lang/String;Z)V
  • Method Details

    • getDisplayText

      public Text getDisplayText()
      Mappings:
      Namespace Name Mixin selector
      official a Lfwa;a()Lsw;
      intermediary method_48303 Lnet/minecraft/class_1077;method_48303()Lnet/minecraft/class_2561;
      named getDisplayText Lnet/minecraft/client/resource/language/LanguageDefinition;getDisplayText()Lnet/minecraft/text/Text;
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • region

      public String region()
      Returns the value of the region record component.
      Returns:
      the value of the region record component
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • rightToLeft

      public boolean rightToLeft()
      Returns the value of the rightToLeft record component.
      Returns:
      the value of the rightToLeft record component