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 - named - net/minecraft/client/resource/language/LanguageDefinition- intermediary - net/minecraft/class_1077- official - hgc- named - region- intermediary - comp_1198- official - b- named - name- intermediary - comp_1199- official - c- named - rightToLeft- intermediary - comp_1200- official - d
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<LanguageDefinition> private final StringThe field for thenamerecord component.private final StringThe field for theregionrecord component.private final booleanThe field for therightToLeftrecord component.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.region()Returns the value of theregionrecord component.booleanReturns the value of therightToLeftrecord component.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
regionThe field for theregionrecord component.
- 
nameThe field for thenamerecord component.
- 
rightToLeftprivate final boolean rightToLeftThe field for therightToLeftrecord component.
- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - named - CODEC- Lnet/minecraft/client/resource/language/LanguageDefinition;CODEC:Lcom/mojang/serialization/Codec;- intermediary - field_41862- Lnet/minecraft/class_1077;field_41862:Lcom/mojang/serialization/Codec;- official - a- Lhgc;a:Lcom/mojang/serialization/Codec;
 
 
- 
- 
Constructor Details- 
LanguageDefinition- Mappings:
- Namespace - Name - Mixin selector - named - <init>- Lnet/minecraft/client/resource/language/LanguageDefinition;<init>(Ljava/lang/String;Ljava/lang/String;Z)V- intermediary - <init>- Lnet/minecraft/class_1077;<init>(Ljava/lang/String;Ljava/lang/String;Z)V- official - <init>- Lhgc;<init>(Ljava/lang/String;Ljava/lang/String;Z)V
 
 
- 
- 
Method Details- 
getDisplayText- Mappings:
- Namespace - Name - Mixin selector - named - getDisplayText- Lnet/minecraft/client/resource/language/LanguageDefinition;getDisplayText()Lnet/minecraft/text/Text;- intermediary - method_48303- Lnet/minecraft/class_1077;method_48303()Lnet/minecraft/class_2561;- official - a- Lhgc;a()Lwp;
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 withObjects::equals(Object,Object); primitive components are compared with '=='.
- 
regionReturns the value of theregionrecord component.- Returns:
- the value of the regionrecord component
 
- 
nameReturns the value of thenamerecord component.- Returns:
- the value of the namerecord component
 
- 
rightToLeftpublic boolean rightToLeft()Returns the value of therightToLeftrecord component.- Returns:
- the value of the rightToLeftrecord component
 
 
-