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$Metadata- intermediary - net/minecraft/class_3288$class_7679- official - atx$a- named - description- intermediary - comp_999- official - a- named - compatibility- intermediary - comp_1583- official - b- named - requestedFeatures- intermediary - comp_1001- official - c- named - overlays- intermediary - comp_1584- official - d
- 
Field SummaryFieldsModifier 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 SummaryConstructorsConstructorDescriptionMetadata(Text text, ResourcePackCompatibility resourcePackCompatibility, FeatureSet featureSet, List<String> list) 
- 
Method SummaryModifier 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- 
descriptionThe field for thedescriptionrecord component.
- 
compatibilityThe field for thecompatibilityrecord component.
- 
requestedFeaturesThe field for therequestedFeaturesrecord component.
- 
overlaysThe field for theoverlaysrecord component.
 
- 
- 
Constructor Details- 
Metadatapublic Metadata(Text text, ResourcePackCompatibility resourcePackCompatibility, FeatureSet featureSet, List<String> list) 
 
- 
- 
Method Details- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
descriptionReturns the value of thedescriptionrecord component.- Returns:
- the value of the descriptionrecord component
 
- 
compatibilityReturns the value of thecompatibilityrecord component.- Returns:
- the value of the compatibilityrecord component
 
- 
requestedFeaturesReturns the value of therequestedFeaturesrecord component.- Returns:
- the value of the requestedFeaturesrecord component
 
- 
overlaysReturns the value of theoverlaysrecord component.- Returns:
- the value of the overlaysrecord component
 
 
-