Package net.minecraft.resource
Record Class ResourcePackInfo
java.lang.Object
java.lang.Record
net.minecraft.resource.ResourcePackInfo
- Record Components:
id-title-source-knownPackInfo-
public record ResourcePackInfo(String id, Text title, ResourcePackSource source, Optional<VersionedIdentifier> knownPackInfo)
extends Record
- Mappings:
Namespace Name named net/minecraft/resource/ResourcePackInfointermediary net/minecraft/class_9224official aspnamed idintermediary comp_2329official anamed titleintermediary comp_2330official bnamed sourceintermediary comp_2331official cnamed knownPackInfointermediary comp_2332official d
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for theidrecord component.private final Optional<VersionedIdentifier> The field for theknownPackInforecord component.private final ResourcePackSourceThe field for thesourcerecord component.private final TextThe field for thetitlerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionResourcePackInfo(String string, Text text, ResourcePackSource resourcePackSource, Optional<VersionedIdentifier> optional) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.getInformationText(boolean enabled, Text description) final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of theknownPackInforecord component.source()Returns the value of thesourcerecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
id
The field for theidrecord component. -
title
The field for thetitlerecord component. -
source
The field for thesourcerecord component. -
knownPackInfo
The field for theknownPackInforecord component.
-
-
Constructor Details
-
ResourcePackInfo
public ResourcePackInfo(String string, Text text, ResourcePackSource resourcePackSource, Optional<VersionedIdentifier> optional)
-
-
Method Details
-
getInformationText
- Mappings:
Namespace Name Mixin selector named getInformationTextLnet/minecraft/resource/ResourcePackInfo;getInformationText(ZLnet/minecraft/text/Text;)Lnet/minecraft/text/Text;intermediary method_56927Lnet/minecraft/class_9224;method_56927(ZLnet/minecraft/class_2561;)Lnet/minecraft/class_2561;official aLasp;a(ZLwz;)Lwz;
-
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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
knownPackInfo
Returns the value of theknownPackInforecord component.- Returns:
- the value of the
knownPackInforecord component
-