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 evr
intermediary net/minecraft/class_7574
named net/minecraft/client/report/AbuseReportContext
official a
intermediary comp_885
named sender
official b
intermediary comp_886
named environment
official c
intermediary comp_887
named chatLog
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ChatLog
The field for thechatLog
record component.private final ReporterEnvironment
The field for theenvironment
record component.private static final int
private final AbuseReportSender
The field for thesender
record component. -
Constructor Summary
ConstructorDescriptionAbuseReportContext
(AbuseReportSender abuseReportSender, ReporterEnvironment reporterEnvironment, ChatLog chatLog) -
Method Summary
Modifier and TypeMethodDescriptionchatLog()
Returns the value of thechatLog
record component.static AbuseReportContext
create
(ReporterEnvironment environment, com.mojang.authlib.minecraft.UserApiService userApiService) Returns the value of theenvironment
record component.boolean
environmentEquals
(ReporterEnvironment environment) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.sender()
Returns the value of thesender
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
sender
The field for thesender
record component. -
environment
The field for theenvironment
record component. -
chatLog
The field for thechatLog
record component. -
MAX_LOGS
private static final int MAX_LOGS- See Also:
- Mappings:
Namespace Name Mixin selector official d
Levr;d:I
intermediary field_39675
Lnet/minecraft/class_7574;field_39675:I
named MAX_LOGS
Lnet/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 a
Levr;a(Levp;Lcom/mojang/authlib/minecraft/UserApiService;)Levr;
intermediary method_44599
Lnet/minecraft/class_7574;method_44599(Lnet/minecraft/class_7569;Lcom/mojang/authlib/minecraft/UserApiService;)Lnet/minecraft/class_7574;
named create
Lnet/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 a
Levr;a(Levp;)Z
intermediary method_44598
Lnet/minecraft/class_7574;method_44598(Lnet/minecraft/class_7569;)Z
named environmentEquals
Lnet/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 thesender
record component.- Returns:
- the value of the
sender
record component
-
environment
Returns the value of theenvironment
record component.- Returns:
- the value of the
environment
record component
-
chatLog
Returns the value of thechatLog
record component.- Returns:
- the value of the
chatLog
record component
-