Package com.destroystokyo.paper.network
Interface NetworkClient
- All Known Subinterfaces:
Player
,StatusClient
Represents a client connected to the server.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the socket address of the client.default @Nullable io.netty.channel.Channel
이 클라이언트 연결의 netty 채널을 가져옵니다.int
Returns the protocol version of the client.Returns the virtual host the client is connected to.
-
Method Details
-
getAddress
InetSocketAddress getAddress()Returns the socket address of the client.- Returns:
- The client's socket address
-
getProtocolVersion
int getProtocolVersion()Returns the protocol version of the client.- Returns:
- The client's protocol version, or
-1
if unknown - See Also:
-
getVirtualHost
@Nullable InetSocketAddress getVirtualHost()Returns 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
null
if unknown
-
getChannel
이 클라이언트 연결의 netty 채널을 가져옵니다.- Returns:
- netty 채널
-