Record Class AbuseReport
java.lang.Object
java.lang.Record
com.mojang.authlib.minecraft.report.AbuseReport
public record AbuseReport(String opinionComments, @Nullable String reason, @Nullable ReportEvidence evidence, @Nullable String skinUrl, ReportedEntity reportedEntity, Instant createdTime)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final InstantThe field for thecreatedTimerecord component.private final ReportEvidenceThe field for theevidencerecord component.private final StringThe field for theopinionCommentsrecord component.private final StringThe field for thereasonrecord component.private final ReportedEntityThe field for thereportedEntityrecord component.private final StringThe field for theskinUrlrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionAbuseReport(String opinionComments, String reason, ReportEvidence evidence, String skinUrl, ReportedEntity reportedEntity, Instant createdTime) Creates an instance of aAbuseReportrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic AbuseReportchat(String opinionComments, String reason, ReportEvidence evidence, ReportedEntity reportedEntity, Instant createdTime) Returns the value of thecreatedTimerecord component.final booleanIndicates whether some other object is "equal to" this one.evidence()Returns the value of theevidencerecord component.final inthashCode()Returns a hash code value for this object.static AbuseReportname(String opinionComments, ReportedEntity reportedEntity, Instant createdTime) Returns the value of theopinionCommentsrecord component.reason()Returns the value of thereasonrecord component.Returns the value of thereportedEntityrecord component.static AbuseReportskin(String opinionComments, String reason, String skinUrl, ReportedEntity reportedEntity, Instant createdTime) skinUrl()Returns the value of theskinUrlrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
opinionComments
The field for theopinionCommentsrecord component. -
reason
The field for thereasonrecord component. -
evidence
The field for theevidencerecord component. -
skinUrl
The field for theskinUrlrecord component. -
reportedEntity
The field for thereportedEntityrecord component. -
createdTime
The field for thecreatedTimerecord component.
-
-
Constructor Details
-
AbuseReport
public AbuseReport(String opinionComments, @Nullable String reason, @Nullable ReportEvidence evidence, @Nullable String skinUrl, ReportedEntity reportedEntity, Instant createdTime) Creates an instance of aAbuseReportrecord class.- Parameters:
opinionComments- the value for theopinionCommentsrecord componentreason- the value for thereasonrecord componentevidence- the value for theevidencerecord componentskinUrl- the value for theskinUrlrecord componentreportedEntity- the value for thereportedEntityrecord componentcreatedTime- the value for thecreatedTimerecord component
-
-
Method Details
-
name
public static AbuseReport name(String opinionComments, ReportedEntity reportedEntity, Instant createdTime) -
skin
public static AbuseReport skin(String opinionComments, String reason, @Nullable String skinUrl, ReportedEntity reportedEntity, Instant createdTime) -
chat
public static AbuseReport chat(String opinionComments, String reason, ReportEvidence evidence, ReportedEntity reportedEntity, Instant createdTime) -
toString
-
hashCode
-
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). -
opinionComments
Returns the value of theopinionCommentsrecord component.- Returns:
- the value of the
opinionCommentsrecord component
-
reason
Returns the value of thereasonrecord component.- Returns:
- the value of the
reasonrecord component
-
evidence
Returns the value of theevidencerecord component.- Returns:
- the value of the
evidencerecord component
-
skinUrl
Returns the value of theskinUrlrecord component.- Returns:
- the value of the
skinUrlrecord component
-
reportedEntity
Returns the value of thereportedEntityrecord component.- Returns:
- the value of the
reportedEntityrecord component
-
createdTime
Returns the value of thecreatedTimerecord component.- Returns:
- the value of the
createdTimerecord component
-