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 intermediary net/minecraft/class_1082official fvznamed net/minecraft/client/resource/metadata/LanguageResourceMetadataintermediary comp_1201official dnamed definitions
-
Field Summary
FieldsModifier 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 Summary
Constructors -
Method Summary
Modifier 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
-
definitions
The field for thedefinitionsrecord component. -
LANGUAGE_CODE_CODEC
- Mappings:
Namespace Name Mixin selector intermediary field_41863Lnet/minecraft/class_1082;field_41863:Lcom/mojang/serialization/Codec;official aLfvz;a:Lcom/mojang/serialization/Codec;named LANGUAGE_CODE_CODECLnet/minecraft/client/resource/metadata/LanguageResourceMetadata;LANGUAGE_CODE_CODEC:Lcom/mojang/serialization/Codec;
-
CODEC
- Mappings:
Namespace Name Mixin selector intermediary field_41864Lnet/minecraft/class_1082;field_41864:Lcom/mojang/serialization/Codec;official bLfvz;b:Lcom/mojang/serialization/Codec;named CODECLnet/minecraft/client/resource/metadata/LanguageResourceMetadata;CODEC:Lcom/mojang/serialization/Codec;
-
SERIALIZER
- Mappings:
Namespace Name Mixin selector intermediary field_41865Lnet/minecraft/class_1082;field_41865:Lnet/minecraft/class_7677;official cLfvz;c:Lajy;named SERIALIZERLnet/minecraft/client/resource/metadata/LanguageResourceMetadata;SERIALIZER:Lnet/minecraft/resource/metadata/ResourceMetadataSerializer;
-
-
Constructor Details
-
LanguageResourceMetadata
-
-
Method Details
-
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. -
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. -
equals
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. All components in this record class are compared withObjects::equals(Object,Object). -
definitions
Returns the value of thedefinitionsrecord component.- Returns:
- the value of the
definitionsrecord component
-