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
named net/minecraft/client/resource/metadata/LanguageResourceMetadata
intermediary net/minecraft/class_1082
official gsf
named definitions
intermediary comp_1201
official d
  • Field Details

    • definitions

      private final Map<String,LanguageDefinition> definitions
      The field for the definitions record component.
    • LANGUAGE_CODE_CODEC

      public static final com.mojang.serialization.Codec<String> LANGUAGE_CODE_CODEC
      Mappings:
      Namespace Name Mixin selector
      named LANGUAGE_CODE_CODEC Lnet/minecraft/client/resource/metadata/LanguageResourceMetadata;LANGUAGE_CODE_CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_41863 Lnet/minecraft/class_1082;field_41863:Lcom/mojang/serialization/Codec;
      official a Lgsf;a:Lcom/mojang/serialization/Codec;
    • CODEC

      public static final com.mojang.serialization.Codec<LanguageResourceMetadata> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/client/resource/metadata/LanguageResourceMetadata;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_41864 Lnet/minecraft/class_1082;field_41864:Lcom/mojang/serialization/Codec;
      official b Lgsf;b:Lcom/mojang/serialization/Codec;
    • SERIALIZER

      public static final ResourceMetadataSerializer<LanguageResourceMetadata> SERIALIZER
      Mappings:
      Namespace Name Mixin selector
      named SERIALIZER Lnet/minecraft/client/resource/metadata/LanguageResourceMetadata;SERIALIZER:Lnet/minecraft/resource/metadata/ResourceMetadataSerializer;
      intermediary field_41865 Lnet/minecraft/class_1082;field_41865:Lnet/minecraft/class_7677;
      official c Lgsf;c:Late;
  • Constructor Details

  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • definitions

      public Map<String,LanguageDefinition> definitions()
      Returns the value of the definitions record component.
      Returns:
      the value of the definitions record component