Record Class NetworkPlayerServerInfo
java.lang.Object
java.lang.Record
eu.cloudnetservice.modules.bridge.player.NetworkPlayerServerInfo
- Record Components:
uniqueId- the unique id of the player.name- the name of the player.xBoxId- the xbox id of the player, null if the player does not have a xbox id.address- the host address of the player.networkService- the service info of the downstream service the player is connected to.
public record NetworkPlayerServerInfo(@NonNull UUID uniqueId, @NonNull String name, @Nullable String xBoxId, @NonNull eu.cloudnetservice.driver.network.HostAndPort address, @NonNull NetworkServiceInfo networkService)
extends Record
A network player server info represents the downstream service a cloud player is connected to.
- Since:
- 4.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final @NonNull eu.cloudnetservice.driver.network.HostAndPortThe field for theaddressrecord component.The field for thenamerecord component.private final @NonNull NetworkServiceInfoThe field for thenetworkServicerecord component.The field for theuniqueIdrecord component.The field for thexBoxIdrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionNetworkPlayerServerInfo(@NonNull UUID uniqueId, @NonNull String name, @Nullable String xBoxId, @NonNull eu.cloudnetservice.driver.network.HostAndPort address, @NonNull NetworkServiceInfo networkService) Creates an instance of aNetworkPlayerServerInforecord class. -
Method Summary
Modifier and TypeMethodDescription@NonNull eu.cloudnetservice.driver.network.HostAndPortaddress()Returns the value of theaddressrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.Returns the value of thenetworkServicerecord component.final StringtoString()Returns a string representation of this record class.uniqueId()Returns the value of theuniqueIdrecord component.xBoxId()Returns the value of thexBoxIdrecord component.
-
Field Details
-
uniqueId
-
name
-
xBoxId
-
address
-
networkService
The field for thenetworkServicerecord component.
-
-
Constructor Details
-
NetworkPlayerServerInfo
public NetworkPlayerServerInfo(@NonNull @NonNull UUID uniqueId, @NonNull @NonNull String name, @Nullable @Nullable String xBoxId, @NonNull @NonNull eu.cloudnetservice.driver.network.HostAndPort address, @NonNull @NonNull NetworkServiceInfo networkService) Creates an instance of aNetworkPlayerServerInforecord class.- Parameters:
uniqueId- the value for theuniqueIdrecord componentname- the value for thenamerecord componentxBoxId- the value for thexBoxIdrecord componentaddress- the value for theaddressrecord componentnetworkService- the value for thenetworkServicerecord 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). -
uniqueId
-
name
-
xBoxId
-
address
-
networkService
Returns the value of thenetworkServicerecord component.- Returns:
- the value of the
networkServicerecord component
-