Record Class ReportEnvironment.Server.Realm
java.lang.Object
java.lang.Record
net.minecraft.client.multiplayer.chat.report.ReportEnvironment.Server.Realm
- All Implemented Interfaces:
- ReportEnvironment.Server
- Enclosing interface:
- ReportEnvironment.Server
public static record ReportEnvironment.Server.Realm(long realmId, int slotId)
extends Record
implements ReportEnvironment.Server
- 
Nested Class SummaryNested classes/interfaces inherited from interface net.minecraft.client.multiplayer.chat.report.ReportEnvironment.ServerReportEnvironment.Server.Realm, ReportEnvironment.Server.ThirdParty
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionRealm(long realmId, int slotId) Creates an instance of aRealmrecord class.Realm(RealmsServer p_239068_) 
- 
Method SummaryModifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longrealmId()Returns the value of therealmIdrecord component.intslotId()Returns the value of theslotIdrecord component.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
realmIdprivate final long realmIdThe field for therealmIdrecord component.
- 
slotIdprivate final int slotIdThe field for theslotIdrecord component.
 
- 
- 
Constructor Details- 
Realm
- 
Realmpublic Realm(long realmId, int slotId) Creates an instance of aRealmrecord class.- Parameters:
- realmId- the value for the- realmIdrecord component
- slotId- the value for the- slotIdrecord component
 
 
- 
- 
Method Details- 
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 with '=='.
- 
realmIdpublic long realmId()Returns the value of therealmIdrecord component.- Returns:
- the value of the realmIdrecord component
 
- 
slotIdpublic int slotId()Returns the value of theslotIdrecord component.- Returns:
- the value of the slotIdrecord component
 
 
-