Record Class ClientInfo
java.lang.Object
java.lang.Record
org.cloudburstmc.netty.channel.nethernet.signaling.ClientInfo
- Record Components:
version- The game version, such as1.26.60.29protocol- The network protocol versionplatform- The build platform, such as8for Win32
What a client tells the server about itself in the query of its signaling requests. The server
reads it from both the status check and the join, and passes null for a request that carries none
or a malformed one. The client reports it unchecked, so it is a hint rather than anything to trust.
-
Constructor Summary
ConstructorsConstructorDescriptionClientInfo(String version, int protocol, int platform) Creates an instance of aClientInforecord class. -
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.intplatform()Returns the value of theplatformrecord component.intprotocol()Returns the value of theprotocolrecord component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.
-
Constructor Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
protocol
public int protocol()Returns the value of theprotocolrecord component.- Returns:
- the value of the
protocolrecord component
-
platform
public int platform()Returns the value of theplatformrecord component.- Returns:
- the value of the
platformrecord component
-