Record Class AbuseReportSender.Services

java.lang.Object
java.lang.Record
net.minecraft.client.multiplayer.chat.report.AbuseReportSender.Services
All Implemented Interfaces:
AbuseReportSender
Enclosing interface:
AbuseReportSender

public static record AbuseReportSender.Services(ReportEnvironment environment, com.mojang.authlib.minecraft.UserApiService userApiService) extends Record implements AbuseReportSender
  • Field Details

    • environment

      private final ReportEnvironment 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_TEXT

      private static final Component SERVICE_UNAVAILABLE_TEXT
    • HTTP_ERROR_TEXT

      private static final Component HTTP_ERROR_TEXT
    • JSON_ERROR_TEXT

      private static final Component JSON_ERROR_TEXT
  • Constructor Details

    • Services

      public Services(ReportEnvironment environment, com.mojang.authlib.minecraft.UserApiService userApiService)
      Creates an instance of a Services record class.
      Parameters:
      environment - the value for the environment record component
      userApiService - the value for the userApiService record component
  • Method Details

    • send

      public CompletableFuture<com.mojang.datafixers.util.Unit> send(UUID p_239470_, ReportType p_297714_, com.mojang.authlib.minecraft.report.AbuseReport p_239471_)
      Specified by:
      send in interface AbuseReportSender
    • isEnabled

      public boolean isEnabled()
      Specified by:
      isEnabled in interface AbuseReportSender
    • getHttpErrorDescription

      private Component getHttpErrorDescription(com.mojang.authlib.exceptions.MinecraftClientHttpException p_239705_)
    • getErrorDescription

      private Component getErrorDescription(com.mojang.authlib.exceptions.MinecraftClientException p_240068_)
    • reportLimits

      public com.mojang.authlib.minecraft.report.AbuseReportLimits reportLimits()
      Specified by:
      reportLimits in interface AbuseReportSender
    • 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 o)
      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:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • environment

      public ReportEnvironment 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