Package net.minecraft.resource
Record Class ResourcePackProfile.Metadata
java.lang.Object
java.lang.Record
net.minecraft.resource.ResourcePackProfile.Metadata
- Record Components:
description-compatibility-requestedFeatures-overlays-
- Enclosing class:
ResourcePackProfile
public static record ResourcePackProfile.Metadata(Text description, ResourcePackCompatibility compatibility, FeatureSet requestedFeatures, List<String> overlays)
extends Record
- Mappings:
Namespace Name named net/minecraft/resource/ResourcePackProfile$Metadataintermediary net/minecraft/class_3288$class_7679official atm$anamed descriptionintermediary comp_999official anamed compatibilityintermediary comp_1583official bnamed requestedFeaturesintermediary comp_1001official cnamed overlaysintermediary comp_1584official d
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ResourcePackCompatibilityThe field for thecompatibilityrecord component.private final TextThe field for thedescriptionrecord component.The field for theoverlaysrecord component.private final FeatureSetThe field for therequestedFeaturesrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionMetadata(Text text, ResourcePackCompatibility resourcePackCompatibility, FeatureSet featureSet, List<String> list) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecompatibilityrecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.overlays()Returns the value of theoverlaysrecord component.Returns the value of therequestedFeaturesrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
description
The field for thedescriptionrecord component. -
compatibility
The field for thecompatibilityrecord component. -
requestedFeatures
The field for therequestedFeaturesrecord component. -
overlays
The field for theoverlaysrecord component.
-
-
Constructor Details
-
Metadata
public Metadata(Text text, ResourcePackCompatibility resourcePackCompatibility, FeatureSet featureSet, List<String> list)
-
-
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). -
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
compatibility
Returns the value of thecompatibilityrecord component.- Returns:
- the value of the
compatibilityrecord component
-
requestedFeatures
Returns the value of therequestedFeaturesrecord component.- Returns:
- the value of the
requestedFeaturesrecord component
-
overlays
Returns the value of theoverlaysrecord component.- Returns:
- the value of the
overlaysrecord component
-