Package net.minecraft.client.realms.dto
Record Class WorldDownload
java.lang.Object
java.lang.Record
net.minecraft.client.realms.dto.WorldDownload
- Record Components:
downloadLink-resourcePackUrl-resourcePackHash-
@Environment(CLIENT)
public record WorldDownload(String downloadLink, String resourcePackUrl, String resourcePackHash)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/realms/dto/WorldDownloadintermediary net/minecraft/class_4889official fzlnamed downloadLinkintermediary comp_5036official anamed resourcePackUrlintermediary comp_5037official bnamed resourcePackHashintermediary comp_5038official c
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for thedownloadLinkrecord component.private static final Loggerprivate final StringThe field for theresourcePackHashrecord component.private final StringThe field for theresourcePackUrlrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionWorldDownload(String downloadLink, String resourcePackUrl, String resourcePackHash) Creates an instance of aWorldDownloadrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedownloadLinkrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static WorldDownloadReturns the value of theresourcePackHashrecord component.Returns the value of theresourcePackUrlrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
downloadLink
The field for thedownloadLinkrecord component. -
resourcePackUrl
The field for theresourcePackUrlrecord component. -
resourcePackHash
The field for theresourcePackHashrecord component. -
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGERLnet/minecraft/client/realms/dto/WorldDownload;LOGGER:Lorg/slf4j/Logger;intermediary field_22665Lnet/minecraft/class_4889;field_22665:Lorg/slf4j/Logger;official dLfzl;d:Lorg/slf4j/Logger;
-
-
Constructor Details
-
WorldDownload
Creates an instance of aWorldDownloadrecord class.- Parameters:
downloadLink- the value for thedownloadLinkrecord componentresourcePackUrl- the value for theresourcePackUrlrecord componentresourcePackHash- the value for theresourcePackHashrecord component
-
-
Method Details
-
parse
- Mappings:
Namespace Name Mixin selector named parseLnet/minecraft/client/realms/dto/WorldDownload;parse(Ljava/lang/String;)Lnet/minecraft/client/realms/dto/WorldDownload;intermediary method_25095Lnet/minecraft/class_4889;method_25095(Ljava/lang/String;)Lnet/minecraft/class_4889;official aLfzl;a(Ljava/lang/String;)Lfzl;
-
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). -
downloadLink
Returns the value of thedownloadLinkrecord component.- Returns:
- the value of the
downloadLinkrecord component
-
resourcePackUrl
Returns the value of theresourcePackUrlrecord component.- Returns:
- the value of the
resourcePackUrlrecord component
-
resourcePackHash
Returns the value of theresourcePackHashrecord component.- Returns:
- the value of the
resourcePackHashrecord component
-