Package net.minecraft.client.report
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 ffb$bintermediary net/minecraft/class_7563$class_7565named net/minecraft/client/report/AbuseReportSender$Implofficial aintermediary comp_875named environmentofficial bintermediary comp_876named userApiService
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.report.AbuseReportSender
AbuseReportSender.AbuseReportException, AbuseReportSender.Impl -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ReporterEnvironmentThe field for theenvironmentrecord component.private static final Textprivate static final Textprivate static final Textprivate final com.mojang.authlib.minecraft.UserApiServiceThe field for theuserApiServicerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionImpl(ReporterEnvironment reporterEnvironment, com.mojang.authlib.minecraft.UserApiService userApiService) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theenvironmentrecord component.final booleanIndicates whether some other object is "equal to" this one.private TextgetErrorText(com.mojang.authlib.exceptions.MinecraftClientException exception) private TextgetErrorText(com.mojang.authlib.exceptions.MinecraftClientHttpException exception) com.mojang.authlib.minecraft.report.AbuseReportLimitsfinal inthashCode()Returns a hash code value for this object.CompletableFuture<com.mojang.datafixers.util.Unit>final StringtoString()Returns a string representation of this record class.com.mojang.authlib.minecraft.UserApiServiceReturns the value of theuserApiServicerecord component.
-
Field Details
-
environment
The field for theenvironmentrecord component. -
userApiService
private final com.mojang.authlib.minecraft.UserApiService userApiServiceThe field for theuserApiServicerecord component. -
SERVICE_UNAVAILABLE_ERROR_TEXT
- Mappings:
Namespace Name Mixin selector official cLffb$b;c:Lsw;intermediary field_39642Lnet/minecraft/class_7563$class_7565;field_39642:Lnet/minecraft/class_2561;named SERVICE_UNAVAILABLE_ERROR_TEXTLnet/minecraft/client/report/AbuseReportSender$Impl;SERVICE_UNAVAILABLE_ERROR_TEXT:Lnet/minecraft/text/Text;
-
HTTP_ERROR_TEXT
- Mappings:
Namespace Name Mixin selector official dLffb$b;d:Lsw;intermediary field_39643Lnet/minecraft/class_7563$class_7565;field_39643:Lnet/minecraft/class_2561;named HTTP_ERROR_TEXTLnet/minecraft/client/report/AbuseReportSender$Impl;HTTP_ERROR_TEXT:Lnet/minecraft/text/Text;
-
JSON_ERROR_TEXT
- Mappings:
Namespace Name Mixin selector official eLffb$b;e:Lsw;intermediary field_39644Lnet/minecraft/class_7563$class_7565;field_39644:Lnet/minecraft/class_2561;named JSON_ERROR_TEXTLnet/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:
sendin interfaceAbuseReportSender- Mappings:
Namespace Name Mixin selector official aLffb;a(Ljava/util/UUID;Lcom/mojang/authlib/minecraft/report/AbuseReport;)Ljava/util/concurrent/CompletableFuture;intermediary method_44563Lnet/minecraft/class_7563;method_44563(Ljava/util/UUID;Lcom/mojang/authlib/minecraft/report/AbuseReport;)Ljava/util/concurrent/CompletableFuture;named sendLnet/minecraft/client/report/AbuseReportSender;send(Ljava/util/UUID;Lcom/mojang/authlib/minecraft/report/AbuseReport;)Ljava/util/concurrent/CompletableFuture;
-
canSendReports
public boolean canSendReports()- Specified by:
canSendReportsin interfaceAbuseReportSender- Mappings:
Namespace Name Mixin selector official aLffb;a()Zintermediary method_44561Lnet/minecraft/class_7563;method_44561()Znamed canSendReportsLnet/minecraft/client/report/AbuseReportSender;canSendReports()Z
-
getErrorText
- Mappings:
Namespace Name Mixin selector official aLffb$b;a(Lcom/mojang/authlib/exceptions/MinecraftClientHttpException;)Lsw;intermediary method_44566Lnet/minecraft/class_7563$class_7565;method_44566(Lcom/mojang/authlib/exceptions/MinecraftClientHttpException;)Lnet/minecraft/class_2561;named getErrorTextLnet/minecraft/client/report/AbuseReportSender$Impl;getErrorText(Lcom/mojang/authlib/exceptions/MinecraftClientHttpException;)Lnet/minecraft/text/Text;
-
getErrorText
- Mappings:
Namespace Name Mixin selector official aLffb$b;a(Lcom/mojang/authlib/exceptions/MinecraftClientException;)Lsw;intermediary method_44565Lnet/minecraft/class_7563$class_7565;method_44565(Lcom/mojang/authlib/exceptions/MinecraftClientException;)Lnet/minecraft/class_2561;named getErrorTextLnet/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:
getLimitsin interfaceAbuseReportSender- Mappings:
Namespace Name Mixin selector official bLffb;b()Lcom/mojang/authlib/minecraft/report/AbuseReportLimits;intermediary method_44564Lnet/minecraft/class_7563;method_44564()Lcom/mojang/authlib/minecraft/report/AbuseReportLimits;named getLimitsLnet/minecraft/client/report/AbuseReportSender;getLimits()Lcom/mojang/authlib/minecraft/report/AbuseReportLimits;
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
environment
Returns the value of theenvironmentrecord component.- Returns:
- the value of the
environmentrecord component
-
userApiService
public com.mojang.authlib.minecraft.UserApiService userApiService()Returns the value of theuserApiServicerecord component.- Returns:
- the value of the
userApiServicerecord component
-