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.create(org.bukkit.plugin.java.JavaPlugin requester, UUID playerUuid, String playerName, CloudPlayerLinks.GameAuth gameAuth, Set<CloudPlayerLinks.LinkProof> offeredProofs) voidremoveHandler(UltiToolsPlugin owner) Removes the handler ifownerset it.default voidremoveHandler(org.bukkit.plugin.java.JavaPlugin owner) voidsetHandler(UltiToolsPlugin owner, CloudPlayerLinks.LinkEventHandler handler) Installs the single-owner handler.default voidsetHandler(org.bukkit.plugin.java.JavaPlugin owner, CloudPlayerLinks.LinkEventHandler 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
-
create
default CompletableFuture<CloudPlayerLinks.LinkCreation> create(org.bukkit.plugin.java.JavaPlugin requester, UUID playerUuid, String playerName, CloudPlayerLinks.GameAuth gameAuth, Set<CloudPlayerLinks.LinkProof> offeredProofs) - See Also:
-
setHandler
default void setHandler(org.bukkit.plugin.java.JavaPlugin owner, CloudPlayerLinks.LinkEventHandler handler) - See Also:
-
removeHandler
default void removeHandler(org.bukkit.plugin.java.JavaPlugin owner) - See Also:
-