public final class FloodgateHandshakeHandler extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
FloodgateHandshakeHandler.HandshakeResult |
static class |
FloodgateHandshakeHandler.ResultType |
| Constructor and Description |
|---|
FloodgateHandshakeHandler(HandshakeHandlersImpl handshakeHandlers,
SimpleFloodgateApi api,
org.geysermc.floodgate.crypto.FloodgateCipher cipher,
FloodgateConfig config,
SkinUploadManager skinUploadManager,
io.netty.util.AttributeKey<org.geysermc.floodgate.api.player.FloodgatePlayer> playerAttribute,
org.geysermc.floodgate.api.logger.FloodgateLogger logger) |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<FloodgateHandshakeHandler.HandshakeResult> |
handle(@NonNull io.netty.channel.Channel channel,
@NonNull String floodgateDataString,
@NonNull String hostname) |
HostnameSeparationResult |
separateHostname(@NonNull String hostname)
Separates the Floodgate data from the hostname
|
public FloodgateHandshakeHandler(HandshakeHandlersImpl handshakeHandlers, SimpleFloodgateApi api, org.geysermc.floodgate.crypto.FloodgateCipher cipher, FloodgateConfig config, SkinUploadManager skinUploadManager, io.netty.util.AttributeKey<org.geysermc.floodgate.api.player.FloodgatePlayer> playerAttribute, org.geysermc.floodgate.api.logger.FloodgateLogger logger)
public HostnameSeparationResult separateHostname(@NonNull @NonNull String hostname)
hostname - the string to look inpublic CompletableFuture<FloodgateHandshakeHandler.HandshakeResult> handle(@NonNull @NonNull io.netty.channel.Channel channel, @NonNull @NonNull String floodgateDataString, @NonNull @NonNull String hostname)