Record Class AbuseReportContext

java.lang.Object
java.lang.Record
net.minecraft.client.report.AbuseReportContext
Record Components:
sender -
environment -
chatLog -

@Environment(CLIENT) public record AbuseReportContext(AbuseReportSender sender, ReporterEnvironment environment, ChatLog chatLog) extends Record
Mappings:
Namespace Name
official evr
intermediary net/minecraft/class_7574
named net/minecraft/client/report/AbuseReportContext
official a
intermediary comp_885
named sender
official b
intermediary comp_886
named environment
official c
intermediary comp_887
named chatLog
  • Field Details

    • sender

      private final AbuseReportSender sender
      The field for the sender record component.
    • environment

      private final ReporterEnvironment environment
      The field for the environment record component.
    • chatLog

      private final ChatLog chatLog
      The field for the chatLog record component.
    • MAX_LOGS

      private static final int MAX_LOGS
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official d Levr;d:I
      intermediary field_39675 Lnet/minecraft/class_7574;field_39675:I
      named MAX_LOGS Lnet/minecraft/client/report/AbuseReportContext;MAX_LOGS:I
  • Constructor Details

  • Method Details

    • create

      public static AbuseReportContext create(ReporterEnvironment environment, com.mojang.authlib.minecraft.UserApiService userApiService)
      Mappings:
      Namespace Name Mixin selector
      official a Levr;a(Levp;Lcom/mojang/authlib/minecraft/UserApiService;)Levr;
      intermediary method_44599 Lnet/minecraft/class_7574;method_44599(Lnet/minecraft/class_7569;Lcom/mojang/authlib/minecraft/UserApiService;)Lnet/minecraft/class_7574;
      named create Lnet/minecraft/client/report/AbuseReportContext;create(Lnet/minecraft/client/report/ReporterEnvironment;Lcom/mojang/authlib/minecraft/UserApiService;)Lnet/minecraft/client/report/AbuseReportContext;
    • environmentEquals

      public boolean environmentEquals(ReporterEnvironment environment)
      Mappings:
      Namespace Name Mixin selector
      official a Levr;a(Levp;)Z
      intermediary method_44598 Lnet/minecraft/class_7574;method_44598(Lnet/minecraft/class_7569;)Z
      named environmentEquals Lnet/minecraft/client/report/AbuseReportContext;environmentEquals(Lnet/minecraft/client/report/ReporterEnvironment;)Z
    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • sender

      public AbuseReportSender sender()
      Returns the value of the sender record component.
      Returns:
      the value of the sender record component
    • environment

      public ReporterEnvironment environment()
      Returns the value of the environment record component.
      Returns:
      the value of the environment record component
    • chatLog

      public ChatLog chatLog()
      Returns the value of the chatLog record component.
      Returns:
      the value of the chatLog record component