Record Class RealmsError.RawHttpPayloadError

java.lang.Object
java.lang.Record
net.minecraft.client.realms.RealmsError.RawHttpPayloadError
Record Components:
httpCode -
payload -
All Implemented Interfaces:
RealmsError
Enclosing interface:
RealmsError

@Environment(CLIENT) public static record RealmsError.RawHttpPayloadError(int httpCode, String payload) extends Record implements RealmsError
Mappings:
Namespace Name
named net/minecraft/client/realms/RealmsError$RawHttpPayloadError
intermediary net/minecraft/class_4345$class_8655
official fhj$d
named httpCode
intermediary comp_1602
official c
named payload
intermediary comp_1603
official d
  • Field Details

    • httpCode

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

      private final String payload
      The field for the payload record component.
  • Constructor Details

    • RawHttpPayloadError

      public RawHttpPayloadError(int int2, String string)
  • Method Details

    • getErrorCode

      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 Lfhj;a()I
    • getText

      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 Lfhj;b()Lxv;
    • getErrorMessage

      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 Lfhj;c()Ljava/lang/String;
    • toString

      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

      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

      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

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

      public String payload()
      Returns the value of the payload record component.
      Returns:
      the value of the payload record component