Package io.papermc.paper.connection
Interface ReadablePlayerCookieConnection
- All Superinterfaces:
PlayerConnection
- All Known Subinterfaces:
PlayerCommonConnection
,PlayerConfigurationConnection
,PlayerGameConnection
,PlayerLoginConnection
-
Method Summary
Modifier and TypeMethodDescriptionCompletableFuture
<byte[]> Retrieves a cookie from this connection.Methods inherited from interface io.papermc.paper.connection.PlayerConnection
disconnect, getAddress, getClientAddress, getHAProxyAddress, getVirtualHost, isTransferred
-
Method Details
-
retrieveCookie
Retrieves a cookie from this connection.- Parameters:
key
- the key identifying the cookie- Returns:
- a
CompletableFuture
that will be completed when the Cookie response is received or otherwise available. If the cookie is not set in the client, theCompletableFuture
will complete with a null value.
-