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

Deprecate handshake handlers and player properties

This commit is contained in:
Tim203
2022-07-11 12:36:18 +02:00
parent 41de3673a7
commit 450eeed2a3
5 changed files with 18 additions and 0 deletions

View File

@@ -37,6 +37,7 @@ import org.geysermc.floodgate.util.LinkedPlayer;
* server. Note that at the time I'm writing this that the HandshakeData is created after requesting
* the player link. So the link is present here, if applicable.
*/
@Deprecated
public interface HandshakeData {
/**
* Returns the Channel holding the connection between the client and the server.

View File

@@ -34,6 +34,7 @@ package org.geysermc.floodgate.api.handshake;
* HandshakeData#isFloodgatePlayer()} will be false and Floodgate related methods will return null
* for Java players
*/
@Deprecated
@FunctionalInterface
public interface HandshakeHandler {
/**

View File

@@ -25,6 +25,13 @@
package org.geysermc.floodgate.api.handshake;
/**
* @deprecated This system has been deprecated and will not be available in the new API that will be
* introduced when Geyser will include Floodgate (and thus will have some common base API).
* <br>
* It might be replaced with an event (probably internal), but that isn't certain yet.
*/
@Deprecated
public interface HandshakeHandlers {
/**
* Register a custom handshake handler. This can be used to check and edit the player during the

View File

@@ -143,20 +143,28 @@ public interface FloodgatePlayer {
return FloodgateApi.getInstance().transferPlayer(getCorrectUniqueId(), address, port);
}
@Deprecated
boolean hasProperty(PropertyKey key);
@Deprecated
boolean hasProperty(String key);
@Deprecated
<T> T getProperty(PropertyKey key);
@Deprecated
<T> T getProperty(String key);
@Deprecated
<T> T removeProperty(PropertyKey key);
@Deprecated
<T> T removeProperty(String key);
@Deprecated
<T> T addProperty(PropertyKey key, Object value);
@Deprecated
<T> T addProperty(String key, Object value);
/**

View File

@@ -28,6 +28,7 @@ package org.geysermc.floodgate.api.player;
import lombok.Getter;
@Getter
@Deprecated
public class PropertyKey {
/**
* Socket Address returns the InetSocketAddress of the Bedrock player