Record Class ReportEnvironment.Server.ThirdParty
java.lang.Object
java.lang.Record
net.minecraft.client.multiplayer.chat.report.ReportEnvironment.Server.ThirdParty
- All Implemented Interfaces:
ReportEnvironment.Server
- Enclosing interface:
ReportEnvironment.Server
public static record ReportEnvironment.Server.ThirdParty(String ip)
extends Record
implements ReportEnvironment.Server
-
Nested Class Summary
Nested classes/interfaces inherited from interface ReportEnvironment.Server
ReportEnvironment.Server.Realm, ReportEnvironment.Server.ThirdParty -
Field Summary
Fields -
Constructor Summary
Constructors -
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.ip()Returns the value of theiprecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
ip
The field for theiprecord component.
-
-
Constructor Details
-
ThirdParty
Creates an instance of aThirdPartyrecord class.- Parameters:
ip- the value for theiprecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
ip
Returns the value of theiprecord component.- Returns:
- the value of the
iprecord component
-