Record Class LanguageInfo
java.lang.Object
java.lang.Record
net.minecraft.client.resources.language.LanguageInfo
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final booleanThe field for thebidirectionalrecord component.static final com.mojang.serialization.Codec<LanguageInfo>private final StringThe field for thenamerecord component.private final StringThe field for theregionrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionLanguageInfo(String region, String name, boolean bidirectional) Creates an instance of aLanguageInforecord class.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanReturns the value of thebidirectionalrecord component.final 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.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
regionThe field for theregionrecord component.
- 
nameThe field for thenamerecord component.
- 
bidirectionalprivate final boolean bidirectionalThe field for thebidirectionalrecord component.
- 
CODEC
 
- 
- 
Constructor Details- 
LanguageInfoCreates an instance of aLanguageInforecord class.- Parameters:
- region- the value for the- regionrecord component
- name- the value for the- namerecord component
- bidirectional- the value for the- bidirectionalrecord component
 
 
- 
- 
Method Details- 
toComponent
- 
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
 
- 
bidirectionalpublic boolean bidirectional()Returns the value of thebidirectionalrecord component.- Returns:
- the value of the bidirectionalrecord component
 
 
-