public abstract class PlayerLink extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
PlayerLink.ImplementationType |
| Constructor and Description |
|---|
PlayerLink() |
| Modifier and Type | Method and Description |
|---|---|
protected LinkedPlayer |
createLinkedPlayer(String javaUsername,
UUID javaUniqueId,
UUID bedrockId) |
static <U> CompletableFuture<U> |
failedFuture(Throwable exception) |
abstract CompletableFuture<LinkedPlayer> |
getLinkedPlayer(UUID bedrockId) |
static PlayerLink |
initialize(Logger logger,
Path dataFolder,
FloodgateConfig config) |
static boolean |
isEnabledAndAllowed() |
abstract CompletableFuture<Boolean> |
isLinkedPlayer(UUID bedrockId) |
abstract CompletableFuture<Void> |
linkPlayer(UUID bedrockId,
UUID uuid,
String username) |
protected abstract void |
load(Path dataFolder) |
void |
stop()
Shutdown the thread pool and invalidates the PlayerLink instance
|
abstract CompletableFuture<Void> |
unlinkPlayer(UUID uuid) |
protected abstract void load(Path dataFolder)
public abstract CompletableFuture<LinkedPlayer> getLinkedPlayer(UUID bedrockId)
public abstract CompletableFuture<Boolean> isLinkedPlayer(UUID bedrockId)
public abstract CompletableFuture<Void> linkPlayer(UUID bedrockId, UUID uuid, String username)
public abstract CompletableFuture<Void> unlinkPlayer(UUID uuid)
public static PlayerLink initialize(Logger logger, Path dataFolder, FloodgateConfig config)
public void stop()
protected LinkedPlayer createLinkedPlayer(String javaUsername, UUID javaUniqueId, UUID bedrockId)
public static boolean isEnabledAndAllowed()
public static <U> CompletableFuture<U> failedFuture(Throwable exception)
Copyright © 2021 GeyserMC. All rights reserved.