Package net.minecraft.client.report
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 evrintermediary net/minecraft/class_7574named net/minecraft/client/report/AbuseReportContextofficial aintermediary comp_885named senderofficial bintermediary comp_886named environmentofficial cintermediary comp_887named chatLog
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ChatLogThe field for thechatLogrecord component.private final ReporterEnvironmentThe field for theenvironmentrecord component.private static final intprivate final AbuseReportSenderThe field for thesenderrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionAbuseReportContext(AbuseReportSender abuseReportSender, ReporterEnvironment reporterEnvironment, ChatLog chatLog) -
Method Summary
Modifier and TypeMethodDescriptionchatLog()Returns the value of thechatLogrecord component.static AbuseReportContextcreate(ReporterEnvironment environment, com.mojang.authlib.minecraft.UserApiService userApiService) Returns the value of theenvironmentrecord component.booleanenvironmentEquals(ReporterEnvironment environment) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.sender()Returns the value of thesenderrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
sender
The field for thesenderrecord component. -
environment
The field for theenvironmentrecord component. -
chatLog
The field for thechatLogrecord component. -
MAX_LOGS
private static final int MAX_LOGS- See Also:
- Mappings:
Namespace Name Mixin selector official dLevr;d:Iintermediary field_39675Lnet/minecraft/class_7574;field_39675:Inamed MAX_LOGSLnet/minecraft/client/report/AbuseReportContext;MAX_LOGS:I
-
-
Constructor Details
-
AbuseReportContext
public AbuseReportContext(AbuseReportSender abuseReportSender, ReporterEnvironment reporterEnvironment, ChatLog chatLog)
-
-
Method Details
-
create
public static AbuseReportContext create(ReporterEnvironment environment, com.mojang.authlib.minecraft.UserApiService userApiService) - Mappings:
Namespace Name Mixin selector official aLevr;a(Levp;Lcom/mojang/authlib/minecraft/UserApiService;)Levr;intermediary method_44599Lnet/minecraft/class_7574;method_44599(Lnet/minecraft/class_7569;Lcom/mojang/authlib/minecraft/UserApiService;)Lnet/minecraft/class_7574;named createLnet/minecraft/client/report/AbuseReportContext;create(Lnet/minecraft/client/report/ReporterEnvironment;Lcom/mojang/authlib/minecraft/UserApiService;)Lnet/minecraft/client/report/AbuseReportContext;
-
environmentEquals
- Mappings:
Namespace Name Mixin selector official aLevr;a(Levp;)Zintermediary method_44598Lnet/minecraft/class_7574;method_44598(Lnet/minecraft/class_7569;)Znamed environmentEqualsLnet/minecraft/client/report/AbuseReportContext;environmentEquals(Lnet/minecraft/client/report/ReporterEnvironment;)Z
-
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). -
sender
Returns the value of thesenderrecord component.- Returns:
- the value of the
senderrecord component
-
environment
Returns the value of theenvironmentrecord component.- Returns:
- the value of the
environmentrecord component
-
chatLog
Returns the value of thechatLogrecord component.- Returns:
- the value of the
chatLogrecord component
-