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 akq$a
intermediary net/minecraft/class_3288$class_7679
named net/minecraft/resource/ResourcePackProfile$Metadata
official a
intermediary comp_999
named description
official b
intermediary comp_1000
named format
official c
intermediary comp_1001
named requestedFeatures
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Text
The field for thedescription
record component.private final int
The field for theformat
record component.private final FeatureSet
The field for therequestedFeatures
record component. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescription
record component.final boolean
Indicates whether some other object is "equal to" this one.int
format()
Returns the value of theformat
record component.getCompatibility
(ResourceType type) final int
hashCode()
Returns a hash code value for this object.Returns the value of therequestedFeatures
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
description
The field for thedescription
record component. -
format
private final int formatThe field for theformat
record component. -
requestedFeatures
The field for therequestedFeatures
record component.
-
-
Constructor Details
-
Metadata
-
-
Method Details
-
getCompatibility
- Mappings:
Namespace Name Mixin selector official a
Lakq$a;a(Lajw;)Lakr;
intermediary method_45277
Lnet/minecraft/class_3288$class_7679;method_45277(Lnet/minecraft/class_3264;)Lnet/minecraft/class_3281;
named getCompatibility
Lnet/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 thedescription
record component.- Returns:
- the value of the
description
record component
-
format
public int format()Returns the value of theformat
record component.- Returns:
- the value of the
format
record component
-
requestedFeatures
Returns the value of therequestedFeatures
record component.- Returns:
- the value of the
requestedFeatures
record component
-