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 SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final StringThe field for theclientVersionrecord component.private final ReportEnvironment.ServerThe field for theserverrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionReportEnvironment(String clientVersion, ReportEnvironment.Server server) Creates an instance of aReportEnvironmentrecord class.
- 
Method SummaryModifier 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- 
clientVersionThe field for theclientVersionrecord component.
- 
serverThe field for theserverrecord component.
 
- 
- 
Constructor Details- 
ReportEnvironmentCreates an instance of aReportEnvironmentrecord class.- Parameters:
- clientVersion- the value for the- clientVersionrecord component
- server- the value for the- serverrecord component
 
 
- 
- 
Method Details- 
local
- 
thirdParty
- 
realm
- 
create
- 
clientInfopublic 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
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
clientVersionReturns the value of theclientVersionrecord component.- Returns:
- the value of the clientVersionrecord component
 
- 
serverReturns the value of theserverrecord component.- Returns:
- the value of the serverrecord component
 
 
-