Record Class ReportEnvironment
java.lang.Object
java.lang.Record
net.minecraft.client.multiplayer.chat.report.ReportEnvironment
public record ReportEnvironment(String clientVersion, @Nullable ReportEnvironment.Server server)
extends Record
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for theclientVersionrecord component.private final ReportEnvironment.ServerThe field for theserverrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionReportEnvironment(String clientVersion, ReportEnvironment.Server server) Creates an instance of aReportEnvironmentrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.authlib.yggdrasil.request.AbuseReportRequest.ClientInfoReturns the value of theclientVersionrecord component.static ReportEnvironmentcreate(ReportEnvironment.Server p_239956_) final booleanIndicates whether some other object is "equal to" this one.private static Stringfinal inthashCode()Returns a hash code value for this object.static ReportEnvironmentlocal()static ReportEnvironmentrealm(RealmsServer p_239765_) com.mojang.authlib.yggdrasil.request.AbuseReportRequest.RealmInfoserver()Returns the value of theserverrecord component.static ReportEnvironmentthirdParty(String p_238999_) com.mojang.authlib.yggdrasil.request.AbuseReportRequest.ThirdPartyServerInfofinal StringtoString()Returns a string representation of this record class.
-
Field Details
-
clientVersion
The field for theclientVersionrecord component. -
server
The field for theserverrecord component.
-
-
Constructor Details
-
ReportEnvironment
Creates an instance of aReportEnvironmentrecord class.- Parameters:
clientVersion- the value for theclientVersionrecord componentserver- the value for theserverrecord component
-
-
Method Details
-
local
-
thirdParty
-
realm
-
create
-
clientInfo
public com.mojang.authlib.yggdrasil.request.AbuseReportRequest.ClientInfo clientInfo() -
thirdPartyServerInfo
@Nullable public com.mojang.authlib.yggdrasil.request.AbuseReportRequest.ThirdPartyServerInfo thirdPartyServerInfo() -
realmInfo
@Nullable public com.mojang.authlib.yggdrasil.request.AbuseReportRequest.RealmInfo realmInfo() -
getClientVersion
-
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). -
clientVersion
Returns the value of theclientVersionrecord component.- Returns:
- the value of the
clientVersionrecord component
-
server
Returns the value of theserverrecord component.- Returns:
- the value of the
serverrecord component
-