Package io.papermc.paper.connection
Interface PlayerCommonConnection
- All Superinterfaces:
PlayerConnection,PluginMessageRecipient,ReadablePlayerCookieConnection,WritablePlayerCookieConnection
- All Known Subinterfaces:
PlayerConfigurationConnection,PlayerGameConnection
public interface PlayerCommonConnection
extends WritablePlayerCookieConnection, ReadablePlayerCookieConnection, PluginMessageRecipient
Represents a connection that has properties shared between the GAME and CONFIG stage.
-
Method Summary
Modifier and TypeMethodDescriptionCollection<? extends ResourcePack> 적용된 리소스팩 목록을 가져옵니다.io.netty.channel.Channel이 클라이언트 연결의 netty 채널을 가져옵니다.클라이언트 브랜드 이름을 가져옵니다.<T> TgetClientOption(ClientOption<T> type) 서버에서 감지한 클라이언트의 종류를 가져옵니다.intReturns the protocol version of the client.getResourcePackStatus(UUID uuid) 리소스팩 적용 상태를 가져옵니다.voidsendLinks(ServerLinks links) Sends the given server links to this connection.voidsendReportDetails(Map<String, String> details) Sends data to appear in this connection's report logs.voidTransfers this connection to another server.Methods inherited from interface io.papermc.paper.connection.PlayerConnection
disconnect, getAddress, getClientAddress, getHAProxyAddress, getVirtualHost, isConnected, isTransferredMethods inherited from interface org.bukkit.plugin.messaging.PluginMessageRecipient
getListeningPluginChannels, sendCustomPayload, sendCustomPayload, sendPluginMessageMethods inherited from interface io.papermc.paper.connection.ReadablePlayerCookieConnection
retrieveCookieMethods inherited from interface io.papermc.paper.connection.WritablePlayerCookieConnection
storeCookie
-
Method Details
-
sendReportDetails
Sends data to appear in this connection's report logs. This is useful for debugging server state that may be causing player disconnects.These are formatted as key - value, where keys are limited to a length of 128 characters, values are limited to 4096, and 32 maximum entries can be sent.
- Parameters:
details- report details
-
sendLinks
Sends the given server links to this connection.- Parameters:
links- links to send
-
transfer
Transfers this connection to another server.- Parameters:
host- hostport- port
-
getClientOption
- Parameters:
type- client option- Returns:
- the client option value of the player
-
getAppliedResourcePacks
Collection<? extends ResourcePack> getAppliedResourcePacks()적용된 리소스팩 목록을 가져옵니다.- Returns:
- 리소스팩 목록
-
getResourcePackStatus
리소스팩 적용 상태를 가져옵니다.- Parameters:
uuid- 리소스팩의 고유 ID- Returns:
- 적용을 하지 않았거나, 클라이언트에게 응답을 받지 않은 경우
null을 반환할 수도 있습니다.
-
getProtocolVersion
int getProtocolVersion()Returns the protocol version of the client.- Returns:
- The client's protocol version, or
-1if unknown - See Also:
-
getChannel
io.netty.channel.Channel getChannel()이 클라이언트 연결의 netty 채널을 가져옵니다.- Returns:
- netty 채널
-
getClientBrandName
클라이언트 브랜드 이름을 가져옵니다.- Returns:
- 클라이언트의 브랜드 이름
-
getClientType
ClientType getClientType()서버에서 감지한 클라이언트의 종류를 가져옵니다.Daydream 설정에서 감지가 비활성화 되었거나, 아직 프로세스를 시작하지 않은 경우
ClientType.VANILLA를 반환합니다.- Returns:
- 클라이언트의 종류
-