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 fgn$b
named httpCode
intermediary comp_1596
official e
named payload
intermediary comp_1597
official f
  • Field Details Link icon

    • httpCode Link icon

      private final int httpCode
      The field for the httpCode record component.
    • payload Link icon

      @Nullable private final @Nullable Text payload
      The field for the payload record component.
    • SERVICE_BUSY Link icon

      public static final RealmsError.SimpleHttpError 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 Lfgn$b;c:Lfgn$b;
    • RETRY_TEXT Link icon

      public static final Text 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 Lfgn$b;d:Lwp;
  • Constructor Details Link icon

  • Method Details Link icon

    • unknownCompatibility Link icon

      public static RealmsError.SimpleHttpError unknownCompatibility(String response)
      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 Lfgn$b;a(Ljava/lang/String;)Lfgn$b;
    • connectivity Link icon

      public static RealmsError.SimpleHttpError connectivity(RealmsHttpException exception)
      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 Lfgn$b;a(Lfig;)Lfgn$b;
    • retryable Link icon

      public static RealmsError.SimpleHttpError retryable(int statusCode)
      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 Lfgn$b;a(I)Lfgn$b;
    • statusCodeOnly Link icon

      public static RealmsError.SimpleHttpError statusCodeOnly(int statusCode)
      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 Lfgn$b;b(I)Lfgn$b;
    • getErrorCode Link icon

      public int getErrorCode()
      Specified by:
      getErrorCode in interface RealmsError
      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 Lfgn;a()I
    • getText Link icon

      public Text getText()
      Specified by:
      getText in interface RealmsError
      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 Lfgn;b()Lwp;
    • getErrorMessage Link icon

      public String getErrorMessage()
      Specified by:
      getErrorMessage in interface RealmsError
      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 Lfgn;c()Ljava/lang/String;
    • toString Link icon

      public final 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode Link icon

      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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals Link icon

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • httpCode Link icon

      public int httpCode()
      Returns the value of the httpCode record component.
      Returns:
      the value of the httpCode record component
    • payload Link icon

      @Nullable public @Nullable Text payload()
      Returns the value of the payload record component.
      Returns:
      the value of the payload record component