Package net.minecraft.client.realms
Record Class RealmsError.SimpleHttpError
java.lang.Object
java.lang.Record
net.minecraft.client.realms.RealmsError.SimpleHttpError
- Record Components:
httpCode-payload-
- All Implemented Interfaces:
RealmsError
- Enclosing interface:
RealmsError
@Environment(CLIENT)
public static record RealmsError.SimpleHttpError(int httpCode, @Nullable Text payload)
extends Record
implements RealmsError
- Mappings:
Namespace Name named net/minecraft/client/realms/RealmsError$SimpleHttpErrorintermediary net/minecraft/class_4345$class_8653official fup$bnamed httpCodeintermediary comp_1596official gnamed payloadintermediary comp_1597official h
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.realms.RealmsError
RealmsError.AuthenticationError, RealmsError.DetailedHttpError, RealmsError.RawHttpPayloadError, RealmsError.SimpleHttpError -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringprivate final intThe field for thehttpCoderecord component.The field for thepayloadrecord component.static final Textstatic final RealmsError.SimpleHttpErrorFields inherited from interface net.minecraft.client.realms.RealmsError
LOGGER, NO_DETAILS_TEXT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RealmsError.SimpleHttpErrorstatic RealmsError.SimpleHttpErrorconnectivity(RealmsHttpException exception) final booleanIndicates whether some other object is "equal to" this one.intgetText()final inthashCode()Returns a hash code value for this object.inthttpCode()Returns the value of thehttpCoderecord component.payload()Returns the value of thepayloadrecord component.static RealmsError.SimpleHttpErrorretryable(int statusCode) static RealmsError.SimpleHttpErrorstatusCodeOnly(int statusCode) final StringtoString()Returns a string representation of this record class.static RealmsError.SimpleHttpErrorunknownCompatibility(String response) static RealmsError.SimpleHttpErrorunreadableHtmlBody(int statusCode, String html)
-
Field Details
-
httpCode
private final int httpCodeThe field for thehttpCoderecord component. -
payload
The field for thepayloadrecord component. -
SERVICE_BUSY
- Mappings:
Namespace Name Mixin selector named SERVICE_BUSYLnet/minecraft/client/realms/RealmsError$SimpleHttpError;SERVICE_BUSY:Lnet/minecraft/client/realms/RealmsError$SimpleHttpError;intermediary field_45235Lnet/minecraft/class_4345$class_8653;field_45235:Lnet/minecraft/class_4345$class_8653;official cLfup$b;c:Lfup$b;
-
RETRY_TEXT
- Mappings:
Namespace Name Mixin selector named RETRY_TEXTLnet/minecraft/client/realms/RealmsError$SimpleHttpError;RETRY_TEXT:Lnet/minecraft/text/Text;intermediary field_45236Lnet/minecraft/class_4345$class_8653;field_45236:Lnet/minecraft/class_2561;official dLfup$b;d:Lxx;
-
BODY_HTML_OPENING_TAG
- See Also:
- Mappings:
Namespace Name Mixin selector named BODY_HTML_OPENING_TAGLnet/minecraft/client/realms/RealmsError$SimpleHttpError;BODY_HTML_OPENING_TAG:Ljava/lang/String;intermediary field_60674Lnet/minecraft/class_4345$class_8653;field_60674:Ljava/lang/String;official eLfup$b;e:Ljava/lang/String;
-
BODY_HTML_CLOSING_TAG
- See Also:
- Mappings:
Namespace Name Mixin selector named BODY_HTML_CLOSING_TAGLnet/minecraft/client/realms/RealmsError$SimpleHttpError;BODY_HTML_CLOSING_TAG:Ljava/lang/String;intermediary field_60675Lnet/minecraft/class_4345$class_8653;field_60675:Ljava/lang/String;official fLfup$b;f:Ljava/lang/String;
-
-
Constructor Details
-
SimpleHttpError
-
-
Method Details
-
unknownCompatibility
- Mappings:
Namespace Name Mixin selector named unknownCompatibilityLnet/minecraft/client/realms/RealmsError$SimpleHttpError;unknownCompatibility(Ljava/lang/String;)Lnet/minecraft/client/realms/RealmsError$SimpleHttpError;intermediary method_52660Lnet/minecraft/class_4345$class_8653;method_52660(Ljava/lang/String;)Lnet/minecraft/class_4345$class_8653;official aLfup$b;a(Ljava/lang/String;)Lfup$b;
-
configurationError
- Mappings:
Namespace Name Mixin selector named configurationErrorLnet/minecraft/client/realms/RealmsError$SimpleHttpError;configurationError()Lnet/minecraft/client/realms/RealmsError$SimpleHttpError;intermediary method_71170Lnet/minecraft/class_4345$class_8653;method_71170()Lnet/minecraft/class_4345$class_8653;official dLfup$b;d()Lfup$b;
-
connectivity
- Mappings:
Namespace Name Mixin selector named connectivityLnet/minecraft/client/realms/RealmsError$SimpleHttpError;connectivity(Lnet/minecraft/client/realms/exception/RealmsHttpException;)Lnet/minecraft/client/realms/RealmsError$SimpleHttpError;intermediary method_52659Lnet/minecraft/class_4345$class_8653;method_52659(Lnet/minecraft/class_4354;)Lnet/minecraft/class_4345$class_8653;official aLfup$b;a(Lfws;)Lfup$b;
-
retryable
- Mappings:
Namespace Name Mixin selector named retryableLnet/minecraft/client/realms/RealmsError$SimpleHttpError;retryable(I)Lnet/minecraft/client/realms/RealmsError$SimpleHttpError;intermediary method_52658Lnet/minecraft/class_4345$class_8653;method_52658(I)Lnet/minecraft/class_4345$class_8653;official aLfup$b;a(I)Lfup$b;
-
statusCodeOnly
- Mappings:
Namespace Name Mixin selector named statusCodeOnlyLnet/minecraft/client/realms/RealmsError$SimpleHttpError;statusCodeOnly(I)Lnet/minecraft/client/realms/RealmsError$SimpleHttpError;intermediary method_52661Lnet/minecraft/class_4345$class_8653;method_52661(I)Lnet/minecraft/class_4345$class_8653;official bLfup$b;b(I)Lfup$b;
-
unreadableHtmlBody
- Mappings:
Namespace Name Mixin selector named unreadableHtmlBodyLnet/minecraft/client/realms/RealmsError$SimpleHttpError;unreadableHtmlBody(ILjava/lang/String;)Lnet/minecraft/client/realms/RealmsError$SimpleHttpError;intermediary method_71781Lnet/minecraft/class_4345$class_8653;method_71781(ILjava/lang/String;)Lnet/minecraft/class_4345$class_8653;official bLfup$b;b(ILjava/lang/String;)Lfup$b;
-
getErrorCode
public int getErrorCode()- Specified by:
getErrorCodein interfaceRealmsError- Mappings:
Namespace Name Mixin selector named getErrorCodeLnet/minecraft/client/realms/RealmsError;getErrorCode()Iintermediary method_21037Lnet/minecraft/class_4345;method_21037()Iofficial aLfup;a()I
-
getText
- Specified by:
getTextin interfaceRealmsError- Mappings:
Namespace Name Mixin selector named getTextLnet/minecraft/client/realms/RealmsError;getText()Lnet/minecraft/text/Text;intermediary method_52657Lnet/minecraft/class_4345;method_52657()Lnet/minecraft/class_2561;official bLfup;b()Lxx;
-
getErrorMessage
- Specified by:
getErrorMessagein interfaceRealmsError- Mappings:
Namespace Name Mixin selector named getErrorMessageLnet/minecraft/client/realms/RealmsError;getErrorMessage()Ljava/lang/String;intermediary method_21036Lnet/minecraft/class_4345;method_21036()Ljava/lang/String;official cLfup;c()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 '=='. -
httpCode
public int httpCode()Returns the value of thehttpCoderecord component.- Returns:
- the value of the
httpCoderecord component
-
payload
Returns the value of thepayloadrecord component.- Returns:
- the value of the
payloadrecord component
-