Record Class NetworkPlayerProxyInfo
java.lang.Object
java.lang.Record
eu.cloudnetservice.modules.bridge.player.NetworkPlayerProxyInfo
- 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.version- the protocol version used by the player to connect to the proxy.address- the host address of the player used to connect to the proxy.listener- the host address the proxy is bound to.onlineMode- the online mode of the player, true if the player is authenticated with mojang services.networkService- the service info of the proxy the player is connected to.
- All Implemented Interfaces:
Cloneable
public record NetworkPlayerProxyInfo(@NonNull UUID uniqueId, @NonNull String name, @Nullable String xBoxId, @Range(from=47L,to=2147483647L) int version, @NonNull eu.cloudnetservice.driver.network.HostAndPort address, @NonNull eu.cloudnetservice.driver.network.HostAndPort listener, boolean onlineMode, @NonNull NetworkServiceInfo networkService)
extends Record
implements Cloneable
A network player proxy info represents the proxy 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.private final @NonNull eu.cloudnetservice.driver.network.HostAndPortThe field for thelistenerrecord component.The field for thenamerecord component.private final @NonNull NetworkServiceInfoThe field for thenetworkServicerecord component.private final booleanThe field for theonlineModerecord component.The field for theuniqueIdrecord component.The field for theversionrecord component.The field for thexBoxIdrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionNetworkPlayerProxyInfo(@NonNull UUID uniqueId, @NonNull String name, @Nullable String xBoxId, @Range(from=47L,to=2147483647L) int version, @NonNull eu.cloudnetservice.driver.network.HostAndPort address, @NonNull eu.cloudnetservice.driver.network.HostAndPort listener, boolean onlineMode, @NonNull NetworkServiceInfo networkService) Creates an instance of aNetworkPlayerProxyInforecord class. -
Method Summary
Modifier and TypeMethodDescription@NonNull eu.cloudnetservice.driver.network.HostAndPortaddress()Returns the value of theaddressrecord component.clone()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NonNull eu.cloudnetservice.driver.network.HostAndPortlistener()Returns the value of thelistenerrecord component.name()Returns the value of thenamerecord component.Returns the value of thenetworkServicerecord component.booleanReturns the value of theonlineModerecord component.final StringtoString()Returns a string representation of this record class.uniqueId()Returns the value of theuniqueIdrecord component.version()Returns the value of theversionrecord component.xBoxId()Returns the value of thexBoxIdrecord component.
-
Field Details
-
uniqueId
-
name
-
xBoxId
-
version
-
address
-
listener
-
onlineMode
private final boolean onlineModeThe field for theonlineModerecord component. -
networkService
The field for thenetworkServicerecord component.
-
-
Constructor Details
-
NetworkPlayerProxyInfo
public NetworkPlayerProxyInfo(@NonNull @NonNull UUID uniqueId, @NonNull @NonNull String name, @Nullable @Nullable String xBoxId, @Range(from=47L,to=2147483647L) int version, @NonNull @NonNull eu.cloudnetservice.driver.network.HostAndPort address, @NonNull @NonNull eu.cloudnetservice.driver.network.HostAndPort listener, boolean onlineMode, @NonNull @NonNull NetworkServiceInfo networkService) Creates an instance of aNetworkPlayerProxyInforecord class.- Parameters:
uniqueId- the value for theuniqueIdrecord componentname- the value for thenamerecord componentxBoxId- the value for thexBoxIdrecord componentversion- the value for theversionrecord componentaddress- the value for theaddressrecord componentlistener- the value for thelistenerrecord componentonlineMode- the value for theonlineModerecord componentnetworkService- the value for thenetworkServicerecord component
-
-
Method Details
-
clone
-
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. -
uniqueId
-
name
-
xBoxId
-
version
-
address
-
listener
-
onlineMode
public boolean onlineMode()Returns the value of theonlineModerecord component.- Returns:
- the value of the
onlineModerecord component
-
networkService
Returns the value of thenetworkServicerecord component.- Returns:
- the value of the
networkServicerecord component
-