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
official eci
intermediary net/minecraft/class_4888
named net/minecraft/client/realms/dto/UploadInfo
  • Field Details

    • LOGGER

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

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

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

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

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

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

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

    • UploadInfo

      private UploadInfo(boolean worldClosed, @Nullable @Nullable String token, URI uploadEndpoint)
      Mappings:
      Namespace Name Mixin selector
      official <init> Leci;<init>(ZLjava/lang/String;Ljava/net/URI;)V
      intermediary <init> Lnet/minecraft/class_4888;<init>(ZLjava/lang/String;Ljava/net/URI;)V
      named <init> Lnet/minecraft/client/realms/dto/UploadInfo;<init>(ZLjava/lang/String;Ljava/net/URI;)V
  • Method Details

    • parse

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

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

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

      private static String getUrlWithProtocol(String url, Matcher matcher)
      Mappings:
      Namespace Name Mixin selector
      official a Leci;a(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;
      named getUrlWithProtocol Lnet/minecraft/client/realms/dto/UploadInfo;getUrlWithProtocol(Ljava/lang/String;Ljava/util/regex/Matcher;)Ljava/lang/String;
    • createRequestContent

      public static String createRequestContent(@Nullable @Nullable String token)
      Mappings:
      Namespace Name Mixin selector
      official b Leci;b(Ljava/lang/String;)Ljava/lang/String;
      intermediary method_30864 Lnet/minecraft/class_4888;method_30864(Ljava/lang/String;)Ljava/lang/String;
      named createRequestContent Lnet/minecraft/client/realms/dto/UploadInfo;createRequestContent(Ljava/lang/String;)Ljava/lang/String;
    • getToken

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

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

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