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 aso
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 Summary
Modifier and TypeFieldDescriptionprivate final String
The field for theid
record component.private final Optional
<VersionedIdentifier> The field for theknownPackInfo
record component.private final ResourcePackSource
The field for thesource
record component.private final Text
The field for thetitle
record component. -
Constructor Summary
ConstructorDescriptionResourcePackInfo
(String string, Text text, ResourcePackSource resourcePackSource, Optional<VersionedIdentifier> optional) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.getInformationText
(boolean enabled, Text description) final int
hashCode()
Returns a hash code value for this object.id()
Returns the value of theid
record component.Returns the value of theknownPackInfo
record component.source()
Returns the value of thesource
record component.title()
Returns the value of thetitle
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
id
The field for theid
record component. -
title
The field for thetitle
record component. -
source
The field for thesource
record component. -
knownPackInfo
The field for theknownPackInfo
record component.
-
-
Constructor Details
-
ResourcePackInfo
public 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
Laso;a(ZLwy;)Lwy;
-
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 theid
record component.- Returns:
- the value of the
id
record component
-
title
Returns the value of thetitle
record component.- Returns:
- the value of the
title
record component
-
source
Returns the value of thesource
record component.- Returns:
- the value of the
source
record component
-
knownPackInfo
Returns the value of theknownPackInfo
record component.- Returns:
- the value of the
knownPackInfo
record component
-