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 @Nullable ReportEnvironment.ServerThe field for theserverrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionReportEnvironment(String clientVersion, @Nullable 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(@Nullable ReportEnvironment.Server server) 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 realm) @Nullable com.mojang.authlib.yggdrasil.request.AbuseReportRequest.RealmInfo@Nullable ReportEnvironment.Serverserver()Returns the value of theserverrecord component.static ReportEnvironmentthirdParty(String ip) @Nullable 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
public @Nullable com.mojang.authlib.yggdrasil.request.AbuseReportRequest.ThirdPartyServerInfo thirdPartyServerInfo() -
realmInfo
public @Nullable com.mojang.authlib.yggdrasil.request.AbuseReportRequest.RealmInfo realmInfo() -
getClientVersion
-
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). -
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
-