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 Summary
Nested classes/interfaces inherited from interface net.minecraft.client.multiplayer.chat.report.ReportEnvironment.Server
ReportEnvironment.Server.Realm, ReportEnvironment.Server.ThirdParty -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRealm(long realmId, int slotId) Creates an instance of aRealmrecord class.Realm(RealmsServer p_239068_) -
Method Summary
Modifier 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
-
realmId
private final long realmIdThe field for therealmIdrecord component. -
slotId
private final int slotIdThe field for theslotIdrecord component.
-
-
Constructor Details
-
Realm
-
Realm
public Realm(long realmId, int slotId) Creates an instance of aRealmrecord class.- Parameters:
realmId- the value for therealmIdrecord componentslotId- the value for theslotIdrecord component
-
-
Method Details
-
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 with '=='. -
realmId
public long realmId()Returns the value of therealmIdrecord component.- Returns:
- the value of the
realmIdrecord component
-
slotId
public int slotId()Returns the value of theslotIdrecord component.- Returns:
- the value of the
slotIdrecord component
-