Package net.minecraft.client.realms
Record Class RealmsError.DetailedHttpError
java.lang.Object
java.lang.Record
net.minecraft.client.realms.RealmsError.DetailedHttpError
- Record Components:
httpCode
-code
-reason
-message
-
- All Implemented Interfaces:
RealmsError
- Enclosing interface:
RealmsError
@Environment(CLIENT)
public static record RealmsError.DetailedHttpError(int httpCode, int code, @Nullable String reason, @Nullable String message)
extends Record
implements RealmsError
- Mappings:
Namespace Name official emh$c
intermediary net/minecraft/class_4345$class_8654
named net/minecraft/client/realms/RealmsError$DetailedHttpError
official c
intermediary comp_1598
named httpCode
official d
intermediary comp_1599
named code
official e
intermediary comp_1600
named reason
official f
intermediary comp_1601
named message
-
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 thecode
record component.private final int
The field for thehttpCode
record component.private final @Nullable String
The field for themessage
record component.private final @Nullable String
The field for thereason
record component.Fields inherited from interface net.minecraft.client.realms.RealmsError
LOGGER, NO_DETAILS_TEXT
-
Constructor Summary
ConstructorDescriptionDetailedHttpError
(int int2, int int3, @Nullable String string, @Nullable String string2) -
Method Summary
Modifier and TypeMethodDescriptionint
code()
Returns the value of thecode
record component.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.@Nullable String
message()
Returns the value of themessage
record component.@Nullable String
reason()
Returns the value of thereason
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
DetailedHttpError
-
-
Method Details
-
getErrorCode
public int getErrorCode()- Specified by:
getErrorCode
in interfaceRealmsError
- Mappings:
Namespace Name Mixin selector official a
Lemh;a()I
intermediary method_21037
Lnet/minecraft/class_4345;method_21037()I
named getErrorCode
Lnet/minecraft/client/realms/RealmsError;getErrorCode()I
-
getText
- Specified by:
getText
in interfaceRealmsError
- Mappings:
Namespace Name Mixin selector official b
Lemh;b()Ltl;
intermediary method_52657
Lnet/minecraft/class_4345;method_52657()Lnet/minecraft/class_2561;
named getText
Lnet/minecraft/client/realms/RealmsError;getText()Lnet/minecraft/text/Text;
-
getErrorMessage
- Specified by:
getErrorMessage
in interfaceRealmsError
- Mappings:
Namespace Name Mixin selector official c
Lemh;c()Ljava/lang/String;
intermediary method_21036
Lnet/minecraft/class_4345;method_21036()Ljava/lang/String;
named getErrorMessage
Lnet/minecraft/client/realms/RealmsError;getErrorMessage()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
-
code
public int code()Returns the value of thecode
record component.- Returns:
- the value of the
code
record component
-
reason
Returns the value of thereason
record component.- Returns:
- the value of the
reason
record component
-
message
Returns the value of themessage
record component.- Returns:
- the value of the
message
record component
-