Package net.minecraft.resource
Record Class ResourcePackProfile.Metadata
java.lang.Object
java.lang.Record
net.minecraft.resource.ResourcePackProfile.Metadata
- Record Components:
description-format-requestedFeatures-
- Enclosing class:
ResourcePackProfile
public static record ResourcePackProfile.Metadata(Text description, int format, FeatureSet requestedFeatures)
extends Record
- Mappings:
Namespace Name official akg$aintermediary net/minecraft/class_3288$class_7679named net/minecraft/resource/ResourcePackProfile$Metadataofficial aintermediary comp_999named descriptionofficial bintermediary comp_1000named formatofficial cintermediary comp_1001named requestedFeatures
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final TextThe field for thedescriptionrecord component.private final intThe field for theformatrecord component.private final FeatureSetThe field for therequestedFeaturesrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.intformat()Returns the value of theformatrecord component.getCompatibility(ResourceType type) final inthashCode()Returns a hash code value for this object.Returns the value of therequestedFeaturesrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
description
The field for thedescriptionrecord component. -
format
private final int formatThe field for theformatrecord component. -
requestedFeatures
The field for therequestedFeaturesrecord component.
-
-
Constructor Details
-
Metadata
-
-
Method Details
-
getCompatibility
- Mappings:
Namespace Name Mixin selector official aLakg$a;a(Lajm;)Lakh;intermediary method_45277Lnet/minecraft/class_3288$class_7679;method_45277(Lnet/minecraft/class_3264;)Lnet/minecraft/class_3281;named getCompatibilityLnet/minecraft/resource/ResourcePackProfile$Metadata;getCompatibility(Lnet/minecraft/resource/ResourceType;)Lnet/minecraft/resource/ResourcePackCompatibility;
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
format
public int format()Returns the value of theformatrecord component.- Returns:
- the value of the
formatrecord component
-
requestedFeatures
Returns the value of therequestedFeaturesrecord component.- Returns:
- the value of the
requestedFeaturesrecord component
-