Package net.minecraft.client.realms.dto
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/UploadInfointermediary net/minecraft/class_4888official fzjnamed worldClosedintermediary comp_5033official anamed tokenintermediary comp_5034official bnamed uploadEndpointintermediary comp_5035official c
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate static final Loggerprivate static final intprivate static final PatternThe field for thetokenrecord component.private final URIThe field for theuploadEndpointrecord component.private final booleanThe field for theworldClosedrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionUploadInfo(boolean worldClosed, @Nullable String token, URI uploadEndpoint) Creates an instance of aUploadInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringcreateRequestContent(@Nullable String token) final booleanIndicates whether some other object is "equal to" this one.private static intgetPort(int port, int urlPort) private static StringgetUrlWithProtocol(String url, Matcher matcher) final inthashCode()Returns a hash code value for this object.static @Nullable UploadInfotoken()Returns the value of thetokenrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theuploadEndpointrecord component.booleanReturns the value of theworldClosedrecord component.
-
Field Details
-
worldClosed
private final boolean worldClosedThe field for theworldClosedrecord component. -
token
The field for thetokenrecord component. -
uploadEndpoint
The field for theuploadEndpointrecord component. -
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGERLnet/minecraft/client/realms/dto/UploadInfo;LOGGER:Lorg/slf4j/Logger;intermediary field_22657Lnet/minecraft/class_4888;field_22657:Lorg/slf4j/Logger;official dLfzj;d:Lorg/slf4j/Logger;
-
HTTP_PROTOCOL
- See Also:
- Mappings:
Namespace Name Mixin selector named HTTP_PROTOCOLLnet/minecraft/client/realms/dto/UploadInfo;HTTP_PROTOCOL:Ljava/lang/String;intermediary field_32116Lnet/minecraft/class_4888;field_32116:Ljava/lang/String;official eLfzj;e:Ljava/lang/String;
-
PORT
private static final int PORT- See Also:
- Mappings:
Namespace Name Mixin selector named PORTLnet/minecraft/client/realms/dto/UploadInfo;PORT:Iintermediary field_32117Lnet/minecraft/class_4888;field_32117:Iofficial fLfzj;f:I
-
PROTOCOL_PATTERN
- Mappings:
Namespace Name Mixin selector named PROTOCOL_PATTERNLnet/minecraft/client/realms/dto/UploadInfo;PROTOCOL_PATTERN:Ljava/util/regex/Pattern;intermediary field_26467Lnet/minecraft/class_4888;field_26467:Ljava/util/regex/Pattern;official gLfzj;g:Ljava/util/regex/Pattern;
-
-
Constructor Details
-
UploadInfo
Creates an instance of aUploadInforecord class.- Parameters:
worldClosed- the value for theworldClosedrecord componenttoken- the value for thetokenrecord componentuploadEndpoint- the value for theuploadEndpointrecord component
-
-
Method Details
-
parse
- Mappings:
Namespace Name Mixin selector named parseLnet/minecraft/client/realms/dto/UploadInfo;parse(Ljava/lang/String;)Lnet/minecraft/client/realms/dto/UploadInfo;intermediary method_25088Lnet/minecraft/class_4888;method_25088(Ljava/lang/String;)Lnet/minecraft/class_4888;official aLfzj;a(Ljava/lang/String;)Lfzj;
-
getUrl
- Mappings:
Namespace Name Mixin selector named getUrlLnet/minecraft/client/realms/dto/UploadInfo;getUrl(Ljava/lang/String;I)Ljava/net/URI;intermediary method_30862Lnet/minecraft/class_4888;method_30862(Ljava/lang/String;I)Ljava/net/URI;official aLfzj;a(Ljava/lang/String;I)Ljava/net/URI;
-
getPort
private static int getPort(int port, int urlPort) - Mappings:
Namespace Name Mixin selector named getPortLnet/minecraft/client/realms/dto/UploadInfo;getPort(II)Iintermediary method_30861Lnet/minecraft/class_4888;method_30861(II)Iofficial aLfzj;a(II)I
-
getUrlWithProtocol
- Mappings:
Namespace Name Mixin selector named getUrlWithProtocolLnet/minecraft/client/realms/dto/UploadInfo;getUrlWithProtocol(Ljava/lang/String;Ljava/util/regex/Matcher;)Ljava/lang/String;intermediary method_30863Lnet/minecraft/class_4888;method_30863(Ljava/lang/String;Ljava/util/regex/Matcher;)Ljava/lang/String;official aLfzj;a(Ljava/lang/String;Ljava/util/regex/Matcher;)Ljava/lang/String;
-
createRequestContent
- Mappings:
Namespace Name Mixin selector named createRequestContentLnet/minecraft/client/realms/dto/UploadInfo;createRequestContent(Ljava/lang/String;)Ljava/lang/String;intermediary method_30864Lnet/minecraft/class_4888;method_30864(Ljava/lang/String;)Ljava/lang/String;official bLfzj;b(Ljava/lang/String;)Ljava/lang/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. -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
worldClosed
public boolean worldClosed()Returns the value of theworldClosedrecord component.- Returns:
- the value of the
worldClosedrecord component
-
token
Returns the value of thetokenrecord component.- Returns:
- the value of the
tokenrecord component
-
uploadEndpoint
Returns the value of theuploadEndpointrecord component.- Returns:
- the value of the
uploadEndpointrecord component
-