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 elz$cintermediary net/minecraft/class_4345$class_8654named net/minecraft/client/realms/RealmsError$DetailedHttpErrorofficial cintermediary comp_1598named httpCodeofficial dintermediary comp_1599named codeofficial eintermediary comp_1600named reasonofficial fintermediary comp_1601named 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
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thecoderecord component.private final intThe field for thehttpCoderecord component.The field for themessagerecord component.The field for thereasonrecord component.Fields inherited from interface net.minecraft.client.realms.RealmsError
LOGGER, NO_DETAILS_TEXT -
Constructor Summary
ConstructorsConstructorDescriptionDetailedHttpError(int int2, int int3, @Nullable String string, @Nullable String string2) -
Method Summary
Modifier and TypeMethodDescriptionintcode()Returns the value of thecoderecord component.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.message()Returns the value of themessagerecord component.reason()Returns the value of thereasonrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
DetailedHttpError
-
-
Method Details
-
getErrorCode
public int getErrorCode()- Specified by:
getErrorCodein interfaceRealmsError- Mappings:
Namespace Name Mixin selector official aLelz;a()Iintermediary method_21037Lnet/minecraft/class_4345;method_21037()Inamed getErrorCodeLnet/minecraft/client/realms/RealmsError;getErrorCode()I
-
getText
- Specified by:
getTextin interfaceRealmsError- Mappings:
Namespace Name Mixin selector official bLelz;b()Lte;intermediary method_52657Lnet/minecraft/class_4345;method_52657()Lnet/minecraft/class_2561;named getTextLnet/minecraft/client/realms/RealmsError;getText()Lnet/minecraft/text/Text;
-
getErrorMessage
- Specified by:
getErrorMessagein interfaceRealmsError- Mappings:
Namespace Name Mixin selector official cLelz;c()Ljava/lang/String;intermediary method_21036Lnet/minecraft/class_4345;method_21036()Ljava/lang/String;named getErrorMessageLnet/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 thehttpCoderecord component.- Returns:
- the value of the
httpCoderecord component
-
code
public int code()Returns the value of thecoderecord component.- Returns:
- the value of the
coderecord component
-
reason
Returns the value of thereasonrecord component.- Returns:
- the value of the
reasonrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-