Record Class ConnectedClientConfig
java.lang.Object
java.lang.Record
dev.zwazel.internal.connection.client.ConnectedClientConfig
-
Constructor Summary
ConstructorsConstructorDescriptionConnectedClientConfig(long clientId, String clientName, String clientTeam, long assignedSpawnPoint, TankType clientTankType) Creates an instance of aConnectedClientConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of theassignedSpawnPointrecord component.longclientId()Returns the value of theclientIdrecord component.Returns the value of theclientNamerecord component.Returns the value of theclientTankTyperecord component.Returns the value of theclientTeamrecord component.final booleanIndicates whether some other object is "equal to" this one.getClientState(PublicGameWorld world) getTankConfig(PublicGameWorld world) final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ConnectedClientConfig
public ConnectedClientConfig(long clientId, String clientName, String clientTeam, long assignedSpawnPoint, TankType clientTankType) Creates an instance of aConnectedClientConfigrecord class.- Parameters:
clientId- the value for theclientIdrecord componentclientName- the value for theclientNamerecord componentclientTeam- the value for theclientTeamrecord componentassignedSpawnPoint- the value for theassignedSpawnPointrecord componentclientTankType- the value for theclientTankTyperecord component
-
-
Method Details
-
getClientState
-
getTankConfig
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
clientId
public long clientId()Returns the value of theclientIdrecord component.- Returns:
- the value of the
clientIdrecord component
-
clientName
Returns the value of theclientNamerecord component.- Returns:
- the value of the
clientNamerecord component
-
clientTeam
Returns the value of theclientTeamrecord component.- Returns:
- the value of the
clientTeamrecord component
-
assignedSpawnPoint
public long assignedSpawnPoint()Returns the value of theassignedSpawnPointrecord component.- Returns:
- the value of the
assignedSpawnPointrecord component
-
clientTankType
Returns the value of theclientTankTyperecord component.- Returns:
- the value of the
clientTankTyperecord component
-