Record Class AbuseReportSender.Impl

java.lang.Object
java.lang.Record
net.minecraft.client.report.AbuseReportSender.Impl
Record Components:
environment -
userApiService -
All Implemented Interfaces:
AbuseReportSender
Enclosing interface:
AbuseReportSender

@Environment(CLIENT) public static record AbuseReportSender.Impl(ReporterEnvironment environment, com.mojang.authlib.minecraft.UserApiService userApiService) extends Record implements AbuseReportSender
Mappings:
Namespace Name
official ezp$b
intermediary net/minecraft/class_7563$class_7565
named net/minecraft/client/report/AbuseReportSender$Impl
official a
intermediary comp_875
named environment
official b
intermediary comp_876
named userApiService
  • Field Details

    • environment

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

      private final com.mojang.authlib.minecraft.UserApiService userApiService
      The field for the userApiService record component.
    • SERVICE_UNAVAILABLE_ERROR_TEXT

      private static final Text SERVICE_UNAVAILABLE_ERROR_TEXT
      Mappings:
      Namespace Name Mixin selector
      official c Lezp$b;c:Lss;
      intermediary field_39642 Lnet/minecraft/class_7563$class_7565;field_39642:Lnet/minecraft/class_2561;
      named SERVICE_UNAVAILABLE_ERROR_TEXT Lnet/minecraft/client/report/AbuseReportSender$Impl;SERVICE_UNAVAILABLE_ERROR_TEXT:Lnet/minecraft/text/Text;
    • HTTP_ERROR_TEXT

      private static final Text HTTP_ERROR_TEXT
      Mappings:
      Namespace Name Mixin selector
      official d Lezp$b;d:Lss;
      intermediary field_39643 Lnet/minecraft/class_7563$class_7565;field_39643:Lnet/minecraft/class_2561;
      named HTTP_ERROR_TEXT Lnet/minecraft/client/report/AbuseReportSender$Impl;HTTP_ERROR_TEXT:Lnet/minecraft/text/Text;
    • JSON_ERROR_TEXT

      private static final Text JSON_ERROR_TEXT
      Mappings:
      Namespace Name Mixin selector
      official e Lezp$b;e:Lss;
      intermediary field_39644 Lnet/minecraft/class_7563$class_7565;field_39644:Lnet/minecraft/class_2561;
      named JSON_ERROR_TEXT Lnet/minecraft/client/report/AbuseReportSender$Impl;JSON_ERROR_TEXT:Lnet/minecraft/text/Text;
  • Constructor Details

    • Impl

      public Impl(ReporterEnvironment reporterEnvironment, com.mojang.authlib.minecraft.UserApiService userApiService)
  • Method Details

    • send

      public CompletableFuture<com.mojang.datafixers.util.Unit> send(UUID id, com.mojang.authlib.minecraft.report.AbuseReport report)
      Specified by:
      send in interface AbuseReportSender
      Mappings:
      Namespace Name Mixin selector
      official a Lezp;a(Ljava/util/UUID;Lcom/mojang/authlib/minecraft/report/AbuseReport;)Ljava/util/concurrent/CompletableFuture;
      intermediary method_44563 Lnet/minecraft/class_7563;method_44563(Ljava/util/UUID;Lcom/mojang/authlib/minecraft/report/AbuseReport;)Ljava/util/concurrent/CompletableFuture;
      named send Lnet/minecraft/client/report/AbuseReportSender;send(Ljava/util/UUID;Lcom/mojang/authlib/minecraft/report/AbuseReport;)Ljava/util/concurrent/CompletableFuture;
    • canSendReports

      public boolean canSendReports()
      Specified by:
      canSendReports in interface AbuseReportSender
      Mappings:
      Namespace Name Mixin selector
      official a Lezp;a()Z
      intermediary method_44561 Lnet/minecraft/class_7563;method_44561()Z
      named canSendReports Lnet/minecraft/client/report/AbuseReportSender;canSendReports()Z
    • getErrorText

      private Text getErrorText(com.mojang.authlib.exceptions.MinecraftClientHttpException exception)
      Mappings:
      Namespace Name Mixin selector
      official a Lezp$b;a(Lcom/mojang/authlib/exceptions/MinecraftClientHttpException;)Lss;
      intermediary method_44566 Lnet/minecraft/class_7563$class_7565;method_44566(Lcom/mojang/authlib/exceptions/MinecraftClientHttpException;)Lnet/minecraft/class_2561;
      named getErrorText Lnet/minecraft/client/report/AbuseReportSender$Impl;getErrorText(Lcom/mojang/authlib/exceptions/MinecraftClientHttpException;)Lnet/minecraft/text/Text;
    • getErrorText

      private Text getErrorText(com.mojang.authlib.exceptions.MinecraftClientException exception)
      Mappings:
      Namespace Name Mixin selector
      official a Lezp$b;a(Lcom/mojang/authlib/exceptions/MinecraftClientException;)Lss;
      intermediary method_44565 Lnet/minecraft/class_7563$class_7565;method_44565(Lcom/mojang/authlib/exceptions/MinecraftClientException;)Lnet/minecraft/class_2561;
      named getErrorText Lnet/minecraft/client/report/AbuseReportSender$Impl;getErrorText(Lcom/mojang/authlib/exceptions/MinecraftClientException;)Lnet/minecraft/text/Text;
    • getLimits

      public com.mojang.authlib.minecraft.report.AbuseReportLimits getLimits()
      Specified by:
      getLimits in interface AbuseReportSender
      Mappings:
      Namespace Name Mixin selector
      official b Lezp;b()Lcom/mojang/authlib/minecraft/report/AbuseReportLimits;
      intermediary method_44564 Lnet/minecraft/class_7563;method_44564()Lcom/mojang/authlib/minecraft/report/AbuseReportLimits;
      named getLimits Lnet/minecraft/client/report/AbuseReportSender;getLimits()Lcom/mojang/authlib/minecraft/report/AbuseReportLimits;
    • 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.
    • environment

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

      public com.mojang.authlib.minecraft.UserApiService userApiService()
      Returns the value of the userApiService record component.
      Returns:
      the value of the userApiService record component