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
-
Field Summary
Modifier and TypeFieldDescriptionprivate final String
The field for theclientVersion
record component.private final ReportEnvironment.Server
The field for theserver
record component. -
Constructor Summary
ConstructorDescriptionReportEnvironment
(String clientVersion, ReportEnvironment.Server server) Creates an instance of aReportEnvironment
record class. -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.authlib.yggdrasil.request.AbuseReportRequest.ClientInfo
Returns the value of theclientVersion
record component.static ReportEnvironment
create
(ReportEnvironment.Server p_239956_) final boolean
Indicates whether some other object is "equal to" this one.private static String
final int
hashCode()
Returns a hash code value for this object.static ReportEnvironment
local()
static ReportEnvironment
realm
(RealmsServer p_239765_) com.mojang.authlib.yggdrasil.request.AbuseReportRequest.RealmInfo
server()
Returns the value of theserver
record component.static ReportEnvironment
thirdParty
(String p_238999_) com.mojang.authlib.yggdrasil.request.AbuseReportRequest.ThirdPartyServerInfo
final String
toString()
Returns a string representation of this record class.
-
Field Details
-
clientVersion
The field for theclientVersion
record component. -
server
The field for theserver
record component.
-
-
Constructor Details
-
ReportEnvironment
Creates an instance of aReportEnvironment
record class.- Parameters:
clientVersion
- the value for theclientVersion
record componentserver
- the value for theserver
record 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 theclientVersion
record component.- Returns:
- the value of the
clientVersion
record component
-
server
Returns the value of theserver
record component.- Returns:
- the value of the
server
record component
-