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
- 
Nested Class SummaryNested classes/interfaces inherited from interface net.minecraft.client.multiplayer.chat.report.AbuseReportSenderAbuseReportSender.SendException, AbuseReportSender.Services
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final ReportEnvironmentThe field for theenvironmentrecord component.private static final Componentprivate static final Componentprivate static final Componentprivate final com.mojang.authlib.minecraft.UserApiServiceThe field for theuserApiServicerecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionServices(ReportEnvironment environment, com.mojang.authlib.minecraft.UserApiService userApiService) Creates an instance of aServicesrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionReturns the value of theenvironmentrecord component.final booleanIndicates whether some other object is "equal to" this one.private ComponentgetErrorDescription(com.mojang.authlib.exceptions.MinecraftClientException p_240068_) private ComponentgetHttpErrorDescription(com.mojang.authlib.exceptions.MinecraftClientHttpException p_239705_) final inthashCode()Returns a hash code value for this object.booleancom.mojang.authlib.minecraft.report.AbuseReportLimitsCompletableFuture<com.mojang.datafixers.util.Unit>send(UUID p_239470_, ReportType p_297714_, com.mojang.authlib.minecraft.report.AbuseReport p_239471_) final StringtoString()Returns a string representation of this record class.com.mojang.authlib.minecraft.UserApiServiceReturns the value of theuserApiServicerecord component.
- 
Field Details- 
environmentThe field for theenvironmentrecord component.
- 
userApiServiceprivate final com.mojang.authlib.minecraft.UserApiService userApiServiceThe field for theuserApiServicerecord component.
- 
SERVICE_UNAVAILABLE_TEXT
- 
HTTP_ERROR_TEXT
- 
JSON_ERROR_TEXT
 
- 
- 
Constructor Details- 
Servicespublic Services(ReportEnvironment environment, com.mojang.authlib.minecraft.UserApiService userApiService) Creates an instance of aServicesrecord class.- Parameters:
- environment- the value for the- environmentrecord component
- userApiService- the value for the- userApiServicerecord component
 
 
- 
- 
Method Details- 
sendpublic CompletableFuture<com.mojang.datafixers.util.Unit> send(UUID p_239470_, ReportType p_297714_, com.mojang.authlib.minecraft.report.AbuseReport p_239471_) - Specified by:
- sendin interface- AbuseReportSender
 
- 
isEnabledpublic boolean isEnabled()- Specified by:
- isEnabledin interface- AbuseReportSender
 
- 
getHttpErrorDescriptionprivate Component getHttpErrorDescription(com.mojang.authlib.exceptions.MinecraftClientHttpException p_239705_) 
- 
getErrorDescriptionprivate Component getErrorDescription(com.mojang.authlib.exceptions.MinecraftClientException p_240068_) 
- 
reportLimitspublic com.mojang.authlib.minecraft.report.AbuseReportLimits reportLimits()- Specified by:
- reportLimitsin interface- AbuseReportSender
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
environmentReturns the value of theenvironmentrecord component.- Returns:
- the value of the environmentrecord component
 
- 
userApiServicepublic com.mojang.authlib.minecraft.UserApiService userApiService()Returns the value of theuserApiServicerecord component.- Returns:
- the value of the userApiServicerecord component
 
 
-