Package com.ultikits.ultitools.websocket
Interface CloudPlayerLinks.Transport
- All Known Implementing Classes:
PlayerLinkChannel
- Enclosing class:
CloudPlayerLinks
@Internal
public static interface CloudPlayerLinks.Transport
The framework's transport for link messages; internal, not for module use.
Modules pass an implementation to CloudPlayerLinks only through the framework's
accessor; a module test may implement or mock it to exercise its own code.
- Since:
- 6.3.1
-
Method Summary
Modifier and TypeMethodDescriptioncreate(UltiToolsPlugin requester, UUID playerUuid, String playerName, CloudPlayerLinks.GameAuth gameAuth, Set<CloudPlayerLinks.LinkProof> offeredProofs) Sends oneplayer.link.createand tracks its answer.voidremoveHandler(UltiToolsPlugin owner) Removes the handler ifownerset it.voidsetHandler(UltiToolsPlugin owner, CloudPlayerLinks.LinkEventHandler handler) Installs the single-owner handler.
-
Method Details
-
create
CompletableFuture<CloudPlayerLinks.LinkCreation> create(UltiToolsPlugin requester, UUID playerUuid, String playerName, CloudPlayerLinks.GameAuth gameAuth, Set<CloudPlayerLinks.LinkProof> offeredProofs) Sends oneplayer.link.createand tracks its answer.- Parameters:
requester- the calling moduleplayerUuid- the player's UUIDplayerName- the player's namegameAuth- the game-authentication factsofferedProofs- the supported proofs- Returns:
- the answer future, never null
-
setHandler
Installs the single-owner handler.- Parameters:
owner- the owning modulehandler- the handler- Throws:
IllegalStateException- if another module owns the handler
-
removeHandler
Removes the handler ifownerset it.- Parameters:
owner- the owning module
-