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
-
Constructor Summary
ConstructorDescriptionRealm
(long realmId, int slotId) Creates an instance of aRealm
record class.Realm
(RealmsServer p_239068_) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.long
realmId()
Returns the value of therealmId
record component.int
slotId()
Returns the value of theslotId
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
realmId
private final long realmIdThe field for therealmId
record component. -
slotId
private final int slotIdThe field for theslotId
record component.
-
-
Constructor Details
-
Realm
-
Realm
public Realm(long realmId, int slotId) Creates an instance of aRealm
record class.- Parameters:
realmId
- the value for therealmId
record componentslotId
- the value for theslotId
record 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 therealmId
record component.- Returns:
- the value of the
realmId
record component
-
slotId
public int slotId()Returns the value of theslotId
record component.- Returns:
- the value of the
slotId
record component
-