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 Details

  • Constructor Details

  • Method Details

    • clone

      public NetworkPlayerProxyInfo clone()
      Overrides:
      clone in class Object
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • uniqueId

      @NonNull public @NonNull UUID uniqueId()
      Returns the value of the uniqueId record component.
      Returns:
      the value of the uniqueId record component
    • name

      @NonNull public @NonNull String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • xBoxId

      @Nullable public @Nullable String xBoxId()
      Returns the value of the xBoxId record component.
      Returns:
      the value of the xBoxId record component
    • version

      public @Range(from=47L,to=2147483647L) int version()
      Returns the value of the version record component.
      Returns:
      the value of the version record component
    • address

      @NonNull public @NonNull eu.cloudnetservice.driver.network.HostAndPort address()
      Returns the value of the address record component.
      Returns:
      the value of the address record component
    • listener

      @NonNull public @NonNull eu.cloudnetservice.driver.network.HostAndPort listener()
      Returns the value of the listener record component.
      Returns:
      the value of the listener record component
    • onlineMode

      public boolean onlineMode()
      Returns the value of the onlineMode record component.
      Returns:
      the value of the onlineMode record component
    • networkService

      @NonNull public @NonNull NetworkServiceInfo networkService()
      Returns the value of the networkService record component.
      Returns:
      the value of the networkService record component