Record Class PackOverlaysMetadata

java.lang.Object
java.lang.Record
net.minecraft.resource.metadata.PackOverlaysMetadata
Record Components:
overlays -

public record PackOverlaysMetadata(List<PackOverlaysMetadata.Entry> overlays) extends Record
Mappings:
Namespace Name
official aov
intermediary net/minecraft/class_8617
named net/minecraft/resource/metadata/PackOverlaysMetadata
official b
intermediary comp_1577
named overlays
  • Field Details

    • overlays

      private final List<PackOverlaysMetadata.Entry> overlays
      The field for the overlays record component.
    • DIRECTORY_NAME_PATTERN

      private static final Pattern DIRECTORY_NAME_PATTERN
      Mappings:
      Namespace Name Mixin selector
      official c Laov;c:Ljava/util/regex/Pattern;
      intermediary field_45046 Lnet/minecraft/class_8617;field_45046:Ljava/util/regex/Pattern;
      named DIRECTORY_NAME_PATTERN Lnet/minecraft/resource/metadata/PackOverlaysMetadata;DIRECTORY_NAME_PATTERN:Ljava/util/regex/Pattern;
    • CODEC

      private static final com.mojang.serialization.Codec<PackOverlaysMetadata> CODEC
      Mappings:
      Namespace Name Mixin selector
      official d Laov;d:Lcom/mojang/serialization/Codec;
      intermediary field_45047 Lnet/minecraft/class_8617;field_45047:Lcom/mojang/serialization/Codec;
      named CODEC Lnet/minecraft/resource/metadata/PackOverlaysMetadata;CODEC:Lcom/mojang/serialization/Codec;
    • SERIALIZER

      public static final ResourceMetadataSerializer<PackOverlaysMetadata> SERIALIZER
      Mappings:
      Namespace Name Mixin selector
      official a Laov;a:Lapj;
      intermediary field_45045 Lnet/minecraft/class_8617;field_45045:Lnet/minecraft/class_7677;
      named SERIALIZER Lnet/minecraft/resource/metadata/PackOverlaysMetadata;SERIALIZER:Lnet/minecraft/resource/metadata/ResourceMetadataSerializer;
  • Constructor Details

  • Method Details

    • validate

      private static com.mojang.serialization.DataResult<String> validate(String directoryName)
      Mappings:
      Namespace Name Mixin selector
      official a Laov;a(Ljava/lang/String;)Lcom/mojang/serialization/DataResult;
      intermediary method_52430 Lnet/minecraft/class_8617;method_52430(Ljava/lang/String;)Lcom/mojang/serialization/DataResult;
      named validate Lnet/minecraft/resource/metadata/PackOverlaysMetadata;validate(Ljava/lang/String;)Lcom/mojang/serialization/DataResult;
    • getAppliedOverlays

      public List<String> getAppliedOverlays(int packFormat)
      Mappings:
      Namespace Name Mixin selector
      official a Laov;a(I)Ljava/util/List;
      intermediary method_52427 Lnet/minecraft/class_8617;method_52427(I)Ljava/util/List;
      named getAppliedOverlays Lnet/minecraft/resource/metadata/PackOverlaysMetadata;getAppliedOverlays(I)Ljava/util/List;
    • 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.
    • overlays

      public List<PackOverlaysMetadata.Entry> overlays()
      Returns the value of the overlays record component.
      Returns:
      the value of the overlays record component