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$SimpleHttpError
intermediary net/minecraft/class_4345$class_8653
official fhj$b
named httpCode
intermediary comp_1596
official e
named payload
intermediary comp_1597
official f
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.realms.RealmsError
RealmsError.AuthenticationError, RealmsError.DetailedHttpError, RealmsError.RawHttpPayloadError, RealmsError.SimpleHttpError
-
Field Summary
Modifier and TypeFieldDescriptionprivate final int
The field for thehttpCode
record component.The field for thepayload
record component.static final Text
static final RealmsError.SimpleHttpError
Fields inherited from interface net.minecraft.client.realms.RealmsError
LOGGER, NO_DETAILS_TEXT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic RealmsError.SimpleHttpError
connectivity
(RealmsHttpException exception) final boolean
Indicates whether some other object is "equal to" this one.int
getText()
final int
hashCode()
Returns a hash code value for this object.int
httpCode()
Returns the value of thehttpCode
record component.payload()
Returns the value of thepayload
record component.static RealmsError.SimpleHttpError
retryable
(int statusCode) static RealmsError.SimpleHttpError
statusCodeOnly
(int statusCode) final String
toString()
Returns a string representation of this record class.static RealmsError.SimpleHttpError
unknownCompatibility
(String response)
-
Field Details
-
httpCode
private final int httpCodeThe field for thehttpCode
record component. -
payload
The field for thepayload
record component. -
SERVICE_BUSY
- Mappings:
Namespace Name Mixin selector named SERVICE_BUSY
Lnet/minecraft/client/realms/RealmsError$SimpleHttpError;SERVICE_BUSY:Lnet/minecraft/client/realms/RealmsError$SimpleHttpError;
intermediary field_45235
Lnet/minecraft/class_4345$class_8653;field_45235:Lnet/minecraft/class_4345$class_8653;
official c
Lfhj$b;c:Lfhj$b;
-
RETRY_TEXT
- Mappings:
Namespace Name Mixin selector named RETRY_TEXT
Lnet/minecraft/client/realms/RealmsError$SimpleHttpError;RETRY_TEXT:Lnet/minecraft/text/Text;
intermediary field_45236
Lnet/minecraft/class_4345$class_8653;field_45236:Lnet/minecraft/class_2561;
official d
Lfhj$b;d:Lxv;
-
-
Constructor Details
-
SimpleHttpError
-
-
Method Details
-
unknownCompatibility
- Mappings:
Namespace Name Mixin selector named unknownCompatibility
Lnet/minecraft/client/realms/RealmsError$SimpleHttpError;unknownCompatibility(Ljava/lang/String;)Lnet/minecraft/client/realms/RealmsError$SimpleHttpError;
intermediary method_52660
Lnet/minecraft/class_4345$class_8653;method_52660(Ljava/lang/String;)Lnet/minecraft/class_4345$class_8653;
official a
Lfhj$b;a(Ljava/lang/String;)Lfhj$b;
-
connectivity
- Mappings:
Namespace Name Mixin selector named connectivity
Lnet/minecraft/client/realms/RealmsError$SimpleHttpError;connectivity(Lnet/minecraft/client/realms/exception/RealmsHttpException;)Lnet/minecraft/client/realms/RealmsError$SimpleHttpError;
intermediary method_52659
Lnet/minecraft/class_4345$class_8653;method_52659(Lnet/minecraft/class_4354;)Lnet/minecraft/class_4345$class_8653;
official a
Lfhj$b;a(Lfjc;)Lfhj$b;
-
retryable
- Mappings:
Namespace Name Mixin selector named retryable
Lnet/minecraft/client/realms/RealmsError$SimpleHttpError;retryable(I)Lnet/minecraft/client/realms/RealmsError$SimpleHttpError;
intermediary method_52658
Lnet/minecraft/class_4345$class_8653;method_52658(I)Lnet/minecraft/class_4345$class_8653;
official a
Lfhj$b;a(I)Lfhj$b;
-
statusCodeOnly
- Mappings:
Namespace Name Mixin selector named statusCodeOnly
Lnet/minecraft/client/realms/RealmsError$SimpleHttpError;statusCodeOnly(I)Lnet/minecraft/client/realms/RealmsError$SimpleHttpError;
intermediary method_52661
Lnet/minecraft/class_4345$class_8653;method_52661(I)Lnet/minecraft/class_4345$class_8653;
official b
Lfhj$b;b(I)Lfhj$b;
-
getErrorCode
public int getErrorCode()- Specified by:
getErrorCode
in interfaceRealmsError
- Mappings:
Namespace Name Mixin selector named getErrorCode
Lnet/minecraft/client/realms/RealmsError;getErrorCode()I
intermediary method_21037
Lnet/minecraft/class_4345;method_21037()I
official a
Lfhj;a()I
-
getText
- Specified by:
getText
in interfaceRealmsError
- Mappings:
Namespace Name Mixin selector named getText
Lnet/minecraft/client/realms/RealmsError;getText()Lnet/minecraft/text/Text;
intermediary method_52657
Lnet/minecraft/class_4345;method_52657()Lnet/minecraft/class_2561;
official b
Lfhj;b()Lxv;
-
getErrorMessage
- Specified by:
getErrorMessage
in interfaceRealmsError
- Mappings:
Namespace Name Mixin selector named getErrorMessage
Lnet/minecraft/client/realms/RealmsError;getErrorMessage()Ljava/lang/String;
intermediary method_21036
Lnet/minecraft/class_4345;method_21036()Ljava/lang/String;
official c
Lfhj;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 thehttpCode
record component.- Returns:
- the value of the
httpCode
record component
-
payload
Returns the value of thepayload
record component.- Returns:
- the value of the
payload
record component
-