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/WorldDownload
intermediary net/minecraft/class_4889
official fzl
named downloadLink
intermediary comp_5036
official a
named resourcePackUrl
intermediary comp_5037
official b
named resourcePackHash
intermediary comp_5038
official c
  • Field Details

    • resourcePackUrl

      private final String resourcePackUrl
      The field for the resourcePackUrl record component.
    • resourcePackHash

      private final String resourcePackHash
      The field for the resourcePackHash record component.
    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/client/realms/dto/WorldDownload;LOGGER:Lorg/slf4j/Logger;
      intermediary field_22665 Lnet/minecraft/class_4889;field_22665:Lorg/slf4j/Logger;
      official d Lfzl;d:Lorg/slf4j/Logger;
  • Constructor Details

    • WorldDownload

      public WorldDownload(String downloadLink, String resourcePackUrl, String resourcePackHash)
      Creates an instance of a WorldDownload record class.
      Parameters:
      downloadLink - the value for the downloadLink record component
      resourcePackUrl - the value for the resourcePackUrl record component
      resourcePackHash - the value for the resourcePackHash record component
  • Method Details

    • parse

      public static WorldDownload parse(String json)
      Mappings:
      Namespace Name Mixin selector
      named parse Lnet/minecraft/client/realms/dto/WorldDownload;parse(Ljava/lang/String;)Lnet/minecraft/client/realms/dto/WorldDownload;
      intermediary method_25095 Lnet/minecraft/class_4889;method_25095(Ljava/lang/String;)Lnet/minecraft/class_4889;
      official a Lfzl;a(Ljava/lang/String;)Lfzl;
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • downloadLink

      public String downloadLink()
      Returns the value of the downloadLink record component.
      Returns:
      the value of the downloadLink record component
    • resourcePackUrl

      public String resourcePackUrl()
      Returns the value of the resourcePackUrl record component.
      Returns:
      the value of the resourcePackUrl record component
    • resourcePackHash

      public String resourcePackHash()
      Returns the value of the resourcePackHash record component.
      Returns:
      the value of the resourcePackHash record component