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 ggg
intermediary net/minecraft/class_1082
named net/minecraft/client/resource/metadata/LanguageResourceMetadata
official d
intermediary comp_1201
named definitions
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<LanguageResourceMetadata>
private final Map<String,
LanguageDefinition> The field for thedefinitions
record component.static final com.mojang.serialization.Codec<String>
static final ResourceMetadataSerializer<LanguageResourceMetadata>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedefinitions
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
definitions
The field for thedefinitions
record component. -
LANGUAGE_CODE_CODEC
- Mappings:
Namespace Name Mixin selector official a
Lggg;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
Lggg;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
Lggg;c:Lapj;
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
-
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 thedefinitions
record component.- Returns:
- the value of the
definitions
record component
-