Record Class LanguageResourceMetadata
java.lang.Object
java.lang.Record
net.minecraft.client.resource.metadata.LanguageResourceMetadata
- Record Components:
- definitions-
@Environment(CLIENT)
public record LanguageResourceMetadata(Map<String,LanguageDefinition> definitions)
extends Record 
- Mappings:
- Namespace - Name - official - fwk- intermediary - net/minecraft/class_1082- named - net/minecraft/client/resource/metadata/LanguageResourceMetadata- official - d- intermediary - comp_1201- named - definitions
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<LanguageResourceMetadata>private final Map<String,LanguageDefinition> The field for thedefinitionsrecord component.static final com.mojang.serialization.Codec<String>static final ResourceMetadataSerializer<LanguageResourceMetadata>
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionReturns the value of thedefinitionsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
definitionsThe field for thedefinitionsrecord component.
- 
LANGUAGE_CODE_CODEC- Mappings:
- Namespace - Name - Mixin selector - official - a- Lfwk;a:Lcom/mojang/serialization/Codec;- intermediary - field_41863- Lnet/minecraft/class_1082;field_41863:Lcom/mojang/serialization/Codec;- named - LANGUAGE_CODE_CODEC- Lnet/minecraft/client/resource/metadata/LanguageResourceMetadata;LANGUAGE_CODE_CODEC:Lcom/mojang/serialization/Codec;
 
- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - official - b- Lfwk;b:Lcom/mojang/serialization/Codec;- intermediary - field_41864- Lnet/minecraft/class_1082;field_41864:Lcom/mojang/serialization/Codec;- named - CODEC- Lnet/minecraft/client/resource/metadata/LanguageResourceMetadata;CODEC:Lcom/mojang/serialization/Codec;
 
- 
SERIALIZER- Mappings:
- Namespace - Name - Mixin selector - official - c- Lfwk;c:Lajy;- intermediary - field_41865- Lnet/minecraft/class_1082;field_41865:Lnet/minecraft/class_7677;- named - SERIALIZER- Lnet/minecraft/client/resource/metadata/LanguageResourceMetadata;SERIALIZER:Lnet/minecraft/resource/metadata/ResourceMetadataSerializer;
 
 
- 
- 
Constructor Details- 
LanguageResourceMetadata
 
- 
- 
Method Details- 
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. All components in this record class are compared withObjects::equals(Object,Object).
- 
definitionsReturns the value of thedefinitionsrecord component.- Returns:
- the value of the definitionsrecord component
 
 
-