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 aConnectedClientConfig
record class. -
Method Summary
Modifier and TypeMethodDescriptionlong
Returns the value of theassignedSpawnPoint
record component.long
clientId()
Returns the value of theclientId
record component.Returns the value of theclientName
record component.Returns the value of theclientTankType
record component.Returns the value of theclientTeam
record component.final boolean
Indicates whether some other object is "equal to" this one.getClientState
(PublicGameWorld world) getTankConfig
(PublicGameWorld world) final int
hashCode()
Returns a hash code value for this object.final String
toString()
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 aConnectedClientConfig
record class.- Parameters:
clientId
- the value for theclientId
record componentclientName
- the value for theclientName
record componentclientTeam
- the value for theclientTeam
record componentassignedSpawnPoint
- the value for theassignedSpawnPoint
record componentclientTankType
- the value for theclientTankType
record 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 thecompare
method from their corresponding wrapper classes. -
clientId
public long clientId()Returns the value of theclientId
record component.- Returns:
- the value of the
clientId
record component
-
clientName
Returns the value of theclientName
record component.- Returns:
- the value of the
clientName
record component
-
clientTeam
Returns the value of theclientTeam
record component.- Returns:
- the value of the
clientTeam
record component
-
assignedSpawnPoint
public long assignedSpawnPoint()Returns the value of theassignedSpawnPoint
record component.- Returns:
- the value of the
assignedSpawnPoint
record component
-
clientTankType
Returns the value of theclientTankType
record component.- Returns:
- the value of the
clientTankType
record component
-