1
0
mirror of https://github.com/GeyserMC/Floodgate.git synced 2025-12-30 12:19:22 +00:00

Add ProtocolSupport support

Based of the work done by Camotoy on the 1.0

co-authored-by: Camotoy <20743703+camotoy@users.noreply.github.com>
This commit is contained in:
Tim203
2021-01-16 23:58:13 +01:00
parent 6b47ef1a7a
commit f27ad277ed
9 changed files with 292 additions and 35 deletions

View File

@@ -26,6 +26,7 @@
package org.geysermc.floodgate.api.handshake;
import io.netty.channel.Channel;
import java.util.UUID;
import org.geysermc.floodgate.util.BedrockData;
import org.geysermc.floodgate.util.LinkedPlayer;
import org.geysermc.floodgate.util.RawSkin;
@@ -54,6 +55,14 @@ public interface HandshakeData {
*/
BedrockData getBedrockData();
String getJavaUsername();
String getCorrectUsername();
UUID getJavaUniqueId();
UUID getCorrectUniqueId();
/**
* Returns the linked account associated with the client or null if the player isn't linked or
* not a Floodgate player.