Package net.minecraft.resource.metadata
Record Class PackOverlaysMetadata
java.lang.Object
java.lang.Record
net.minecraft.resource.metadata.PackOverlaysMetadata
- Record Components:
overlays-
- Mappings:
Namespace Name named net/minecraft/resource/metadata/PackOverlaysMetadataintermediary net/minecraft/class_8617official azpnamed overlaysintermediary comp_1577official c
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ResourceMetadataSerializer<PackOverlaysMetadata> private static final Patternprivate final List<PackOverlaysMetadata.Entry> The field for theoverlaysrecord component.static final ResourceMetadataSerializer<PackOverlaysMetadata> -
Constructor Summary
ConstructorsConstructorDescriptionPackOverlaysMetadata(List<PackOverlaysMetadata.Entry> overlays) Creates an instance of aPackOverlaysMetadatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic com.mojang.serialization.Codec<PackOverlaysMetadata> createCodec(ResourceType type) final booleanIndicates whether some other object is "equal to" this one.getAppliedOverlays(PackVersion version) getSerializerFor(ResourceType type) final inthashCode()Returns a hash code value for this object.overlays()Returns the value of theoverlaysrecord component.final StringtoString()Returns a string representation of this record class.private static com.mojang.serialization.DataResult<String>
-
Field Details
-
overlays
The field for theoverlaysrecord component. -
DIRECTORY_NAME_PATTERN
- Mappings:
Namespace Name Mixin selector named DIRECTORY_NAME_PATTERNLnet/minecraft/resource/metadata/PackOverlaysMetadata;DIRECTORY_NAME_PATTERN:Ljava/util/regex/Pattern;intermediary field_45046Lnet/minecraft/class_8617;field_45046:Ljava/util/regex/Pattern;official dLazp;d:Ljava/util/regex/Pattern;
-
CLIENT_RESOURCES_SERIALIZER
- Mappings:
Namespace Name Mixin selector named CLIENT_RESOURCES_SERIALIZERLnet/minecraft/resource/metadata/PackOverlaysMetadata;CLIENT_RESOURCES_SERIALIZER:Lnet/minecraft/resource/metadata/ResourceMetadataSerializer;intermediary field_61145Lnet/minecraft/class_8617;field_61145:Lnet/minecraft/class_7677;official aLazp;a:Lbae;
-
SERVER_DATA_SERIALIZER
- Mappings:
Namespace Name Mixin selector named SERVER_DATA_SERIALIZERLnet/minecraft/resource/metadata/PackOverlaysMetadata;SERVER_DATA_SERIALIZER:Lnet/minecraft/resource/metadata/ResourceMetadataSerializer;intermediary field_61146Lnet/minecraft/class_8617;field_61146:Lnet/minecraft/class_7677;official bLazp;b:Lbae;
-
-
Constructor Details
-
PackOverlaysMetadata
Creates an instance of aPackOverlaysMetadatarecord class.- Parameters:
overlays- the value for theoverlaysrecord component
-
-
Method Details
-
validate
- Mappings:
Namespace Name Mixin selector named validateLnet/minecraft/resource/metadata/PackOverlaysMetadata;validate(Ljava/lang/String;)Lcom/mojang/serialization/DataResult;intermediary method_52430Lnet/minecraft/class_8617;method_52430(Ljava/lang/String;)Lcom/mojang/serialization/DataResult;official aLazp;a(Ljava/lang/String;)Lcom/mojang/serialization/DataResult;
-
createCodec
- Mappings:
Namespace Name Mixin selector named createCodecLnet/minecraft/resource/metadata/PackOverlaysMetadata;createCodec(Lnet/minecraft/resource/ResourceType;)Lcom/mojang/serialization/Codec;intermediary method_72307Lnet/minecraft/class_8617;method_72307(Lnet/minecraft/class_3264;)Lcom/mojang/serialization/Codec;official aLazp;a(Lazt;)Lcom/mojang/serialization/Codec;
-
getSerializerFor
- Mappings:
Namespace Name Mixin selector named getSerializerForLnet/minecraft/resource/metadata/PackOverlaysMetadata;getSerializerFor(Lnet/minecraft/resource/ResourceType;)Lnet/minecraft/resource/metadata/ResourceMetadataSerializer;intermediary method_72309Lnet/minecraft/class_8617;method_72309(Lnet/minecraft/class_3264;)Lnet/minecraft/class_7677;official bLazp;b(Lazt;)Lbae;
-
getAppliedOverlays
- Mappings:
Namespace Name Mixin selector named getAppliedOverlaysLnet/minecraft/resource/metadata/PackOverlaysMetadata;getAppliedOverlays(Lnet/minecraft/resource/PackVersion;)Ljava/util/List;intermediary method_52427Lnet/minecraft/class_8617;method_52427(Lnet/minecraft/class_11555;)Ljava/util/List;official aLazp;a(Lbaf;)Ljava/util/List;
-
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). -
overlays
Returns the value of theoverlaysrecord component.- Returns:
- the value of the
overlaysrecord component
-