Record Class UploadInfo

java.lang.Object
java.lang.Record
net.minecraft.client.realms.dto.UploadInfo
Record Components:
worldClosed -
token -
uploadEndpoint -

@Environment(CLIENT) public record UploadInfo(boolean worldClosed, @Nullable String token, URI uploadEndpoint) extends Record
Mappings:
Namespace Name
named net/minecraft/client/realms/dto/UploadInfo
intermediary net/minecraft/class_4888
official fzj
named worldClosed
intermediary comp_5033
official a
named token
intermediary comp_5034
official b
named uploadEndpoint
intermediary comp_5035
official c
  • Field Details

    • worldClosed

      private final boolean worldClosed
      The field for the worldClosed record component.
    • token

      @Nullable private final @Nullable String token
      The field for the token record component.
    • uploadEndpoint

      private final URI uploadEndpoint
      The field for the uploadEndpoint record component.
    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/client/realms/dto/UploadInfo;LOGGER:Lorg/slf4j/Logger;
      intermediary field_22657 Lnet/minecraft/class_4888;field_22657:Lorg/slf4j/Logger;
      official d Lfzj;d:Lorg/slf4j/Logger;
    • HTTP_PROTOCOL

      private static final String HTTP_PROTOCOL
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named HTTP_PROTOCOL Lnet/minecraft/client/realms/dto/UploadInfo;HTTP_PROTOCOL:Ljava/lang/String;
      intermediary field_32116 Lnet/minecraft/class_4888;field_32116:Ljava/lang/String;
      official e Lfzj;e:Ljava/lang/String;
    • PORT

      private static final int PORT
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named PORT Lnet/minecraft/client/realms/dto/UploadInfo;PORT:I
      intermediary field_32117 Lnet/minecraft/class_4888;field_32117:I
      official f Lfzj;f:I
    • PROTOCOL_PATTERN

      private static final Pattern PROTOCOL_PATTERN
      Mappings:
      Namespace Name Mixin selector
      named PROTOCOL_PATTERN Lnet/minecraft/client/realms/dto/UploadInfo;PROTOCOL_PATTERN:Ljava/util/regex/Pattern;
      intermediary field_26467 Lnet/minecraft/class_4888;field_26467:Ljava/util/regex/Pattern;
      official g Lfzj;g:Ljava/util/regex/Pattern;
  • Constructor Details

    • UploadInfo

      public UploadInfo(boolean worldClosed, @Nullable @Nullable String token, URI uploadEndpoint)
      Creates an instance of a UploadInfo record class.
      Parameters:
      worldClosed - the value for the worldClosed record component
      token - the value for the token record component
      uploadEndpoint - the value for the uploadEndpoint record component
  • Method Details

    • parse

      @Nullable public static @Nullable UploadInfo parse(String json)
      Mappings:
      Namespace Name Mixin selector
      named parse Lnet/minecraft/client/realms/dto/UploadInfo;parse(Ljava/lang/String;)Lnet/minecraft/client/realms/dto/UploadInfo;
      intermediary method_25088 Lnet/minecraft/class_4888;method_25088(Ljava/lang/String;)Lnet/minecraft/class_4888;
      official a Lfzj;a(Ljava/lang/String;)Lfzj;
    • getUrl

      @Nullable public static @Nullable URI getUrl(String url, int port)
      Mappings:
      Namespace Name Mixin selector
      named getUrl Lnet/minecraft/client/realms/dto/UploadInfo;getUrl(Ljava/lang/String;I)Ljava/net/URI;
      intermediary method_30862 Lnet/minecraft/class_4888;method_30862(Ljava/lang/String;I)Ljava/net/URI;
      official a Lfzj;a(Ljava/lang/String;I)Ljava/net/URI;
    • getPort

      private static int getPort(int port, int urlPort)
      Mappings:
      Namespace Name Mixin selector
      named getPort Lnet/minecraft/client/realms/dto/UploadInfo;getPort(II)I
      intermediary method_30861 Lnet/minecraft/class_4888;method_30861(II)I
      official a Lfzj;a(II)I
    • getUrlWithProtocol

      private static String getUrlWithProtocol(String url, Matcher matcher)
      Mappings:
      Namespace Name Mixin selector
      named getUrlWithProtocol Lnet/minecraft/client/realms/dto/UploadInfo;getUrlWithProtocol(Ljava/lang/String;Ljava/util/regex/Matcher;)Ljava/lang/String;
      intermediary method_30863 Lnet/minecraft/class_4888;method_30863(Ljava/lang/String;Ljava/util/regex/Matcher;)Ljava/lang/String;
      official a Lfzj;a(Ljava/lang/String;Ljava/util/regex/Matcher;)Ljava/lang/String;
    • createRequestContent

      public static String createRequestContent(@Nullable @Nullable String token)
      Mappings:
      Namespace Name Mixin selector
      named createRequestContent Lnet/minecraft/client/realms/dto/UploadInfo;createRequestContent(Ljava/lang/String;)Ljava/lang/String;
      intermediary method_30864 Lnet/minecraft/class_4888;method_30864(Ljava/lang/String;)Ljava/lang/String;
      official b Lfzj;b(Ljava/lang/String;)Ljava/lang/String;
    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • worldClosed

      public boolean worldClosed()
      Returns the value of the worldClosed record component.
      Returns:
      the value of the worldClosed record component
    • token

      @Nullable public @Nullable String token()
      Returns the value of the token record component.
      Returns:
      the value of the token record component
    • uploadEndpoint

      public URI uploadEndpoint()
      Returns the value of the uploadEndpoint record component.
      Returns:
      the value of the uploadEndpoint record component