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/ResourcePackInfo- intermediary - net/minecraft/class_9224- official - atb- named - id- intermediary - comp_2329- official - a- named - title- intermediary - comp_2330- official - b- named - source- intermediary - comp_2331- official - c- named - knownPackInfo- intermediary - comp_2332- official - d
- 
Field SummaryFieldsModifier 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 SummaryConstructorsConstructorDescriptionResourcePackInfo(String string, Text text, ResourcePackSource resourcePackSource, Optional<VersionedIdentifier> optional) 
- 
Method SummaryModifier 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- 
idThe field for theidrecord component.
- 
titleThe field for thetitlerecord component.
- 
sourceThe field for thesourcerecord component.
- 
knownPackInfoThe field for theknownPackInforecord component.
 
- 
- 
Constructor Details- 
ResourcePackInfopublic ResourcePackInfo(String string, Text text, ResourcePackSource resourcePackSource, Optional<VersionedIdentifier> optional) 
 
- 
- 
Method Details- 
getInformationText- Mappings:
- Namespace - Name - Mixin selector - named - getInformationText- Lnet/minecraft/resource/ResourcePackInfo;getInformationText(ZLnet/minecraft/text/Text;)Lnet/minecraft/text/Text;- intermediary - method_56927- Lnet/minecraft/class_9224;method_56927(ZLnet/minecraft/class_2561;)Lnet/minecraft/class_2561;- official - a- Latb;a(ZLwp;)Lwp;
 
- 
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).
- 
idReturns the value of theidrecord component.- Returns:
- the value of the idrecord component
 
- 
titleReturns the value of thetitlerecord component.- Returns:
- the value of the titlerecord component
 
- 
sourceReturns the value of thesourcerecord component.- Returns:
- the value of the sourcerecord component
 
- 
knownPackInfoReturns the value of theknownPackInforecord component.- Returns:
- the value of the knownPackInforecord component
 
 
-