Package com.destroystokyo.paper.network
Interface NetworkClient
- All Known Subinterfaces:
- Player,- StatusClient
public interface NetworkClient
Represents a client connected to the server.
- 
Method SummaryModifier and TypeMethodDescriptionReturns the socket address of the client.intReturns the protocol version of the client.Returns the virtual host the client is connected to.
- 
Method Details- 
getAddressReturns the socket address of the client.- Returns:
- The client's socket address
 
- 
getProtocolVersionint getProtocolVersion()Returns the protocol version of the client.- Returns:
- The client's protocol version, or -1if unknown
- See Also:
 
- 
getVirtualHostReturns the virtual host the client is connected to.The virtual host refers to the hostname/port the client used to connect to the server. - Returns:
- The client's virtual host, or nullif unknown
 
 
-