Class UploadInfo

java.lang.Object
net.minecraft.client.realms.dto.ValueObject
net.minecraft.client.realms.dto.UploadInfo

@Environment(CLIENT) public class UploadInfo extends ValueObject
Mappings:
Namespace Name
named net/minecraft/client/realms/dto/UploadInfo
intermediary net/minecraft/class_4888
official fiv
  • Field Details

    • 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 a Lfiv;a: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 b Lfiv;b: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 c Lfiv;c: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 d Lfiv;d:Ljava/util/regex/Pattern;
    • worldClosed

      private final boolean worldClosed
      Mappings:
      Namespace Name Mixin selector
      named worldClosed Lnet/minecraft/client/realms/dto/UploadInfo;worldClosed:Z
      intermediary field_22658 Lnet/minecraft/class_4888;field_22658:Z
      official e Lfiv;e:Z
    • token

      @Nullable private final @Nullable String token
      Mappings:
      Namespace Name Mixin selector
      named token Lnet/minecraft/client/realms/dto/UploadInfo;token:Ljava/lang/String;
      intermediary field_22659 Lnet/minecraft/class_4888;field_22659:Ljava/lang/String;
      official f Lfiv;f:Ljava/lang/String;
    • uploadEndpoint

      private final URI uploadEndpoint
      Mappings:
      Namespace Name Mixin selector
      named uploadEndpoint Lnet/minecraft/client/realms/dto/UploadInfo;uploadEndpoint:Ljava/net/URI;
      intermediary field_22660 Lnet/minecraft/class_4888;field_22660:Ljava/net/URI;
      official g Lfiv;g:Ljava/net/URI;
  • Constructor Details

    • UploadInfo

      private UploadInfo(boolean worldClosed, @Nullable @Nullable String token, URI uploadEndpoint)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/realms/dto/UploadInfo;<init>(ZLjava/lang/String;Ljava/net/URI;)V
      intermediary <init> Lnet/minecraft/class_4888;<init>(ZLjava/lang/String;Ljava/net/URI;)V
      official <init> Lfiv;<init>(ZLjava/lang/String;Ljava/net/URI;)V
  • 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 Lfiv;a(Ljava/lang/String;)Lfiv;
    • 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 Lfiv;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 Lfiv;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 Lfiv;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 Lfiv;b(Ljava/lang/String;)Ljava/lang/String;
    • getToken

      @Nullable public @Nullable String getToken()
      Mappings:
      Namespace Name Mixin selector
      named getToken Lnet/minecraft/client/realms/dto/UploadInfo;getToken()Ljava/lang/String;
      intermediary method_25087 Lnet/minecraft/class_4888;method_25087()Ljava/lang/String;
      official a Lfiv;a()Ljava/lang/String;
    • getUploadEndpoint

      public URI getUploadEndpoint()
      Mappings:
      Namespace Name Mixin selector
      named getUploadEndpoint Lnet/minecraft/client/realms/dto/UploadInfo;getUploadEndpoint()Ljava/net/URI;
      intermediary method_25089 Lnet/minecraft/class_4888;method_25089()Ljava/net/URI;
      official b Lfiv;b()Ljava/net/URI;
    • isWorldClosed

      public boolean isWorldClosed()
      Mappings:
      Namespace Name Mixin selector
      named isWorldClosed Lnet/minecraft/client/realms/dto/UploadInfo;isWorldClosed()Z
      intermediary method_25091 Lnet/minecraft/class_4888;method_25091()Z
      official c Lfiv;c()Z