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:
@@ -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
|
* 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.
|
* the player link. So the link is present here, if applicable.
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public interface HandshakeData {
|
public interface HandshakeData {
|
||||||
/**
|
/**
|
||||||
* Returns the Channel holding the connection between the client and the server.
|
* Returns the Channel holding the connection between the client and the server.
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ package org.geysermc.floodgate.api.handshake;
|
|||||||
* HandshakeData#isFloodgatePlayer()} will be false and Floodgate related methods will return null
|
* HandshakeData#isFloodgatePlayer()} will be false and Floodgate related methods will return null
|
||||||
* for Java players
|
* for Java players
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
@FunctionalInterface
|
@FunctionalInterface
|
||||||
public interface HandshakeHandler {
|
public interface HandshakeHandler {
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -25,6 +25,13 @@
|
|||||||
|
|
||||||
package org.geysermc.floodgate.api.handshake;
|
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 {
|
public interface HandshakeHandlers {
|
||||||
/**
|
/**
|
||||||
* Register a custom handshake handler. This can be used to check and edit the player during the
|
* Register a custom handshake handler. This can be used to check and edit the player during the
|
||||||
|
|||||||
@@ -143,20 +143,28 @@ public interface FloodgatePlayer {
|
|||||||
return FloodgateApi.getInstance().transferPlayer(getCorrectUniqueId(), address, port);
|
return FloodgateApi.getInstance().transferPlayer(getCorrectUniqueId(), address, port);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
boolean hasProperty(PropertyKey key);
|
boolean hasProperty(PropertyKey key);
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
boolean hasProperty(String key);
|
boolean hasProperty(String key);
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
<T> T getProperty(PropertyKey key);
|
<T> T getProperty(PropertyKey key);
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
<T> T getProperty(String key);
|
<T> T getProperty(String key);
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
<T> T removeProperty(PropertyKey key);
|
<T> T removeProperty(PropertyKey key);
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
<T> T removeProperty(String key);
|
<T> T removeProperty(String key);
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
<T> T addProperty(PropertyKey key, Object value);
|
<T> T addProperty(PropertyKey key, Object value);
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
<T> T addProperty(String key, Object value);
|
<T> T addProperty(String key, Object value);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ package org.geysermc.floodgate.api.player;
|
|||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
|
|
||||||
@Getter
|
@Getter
|
||||||
|
@Deprecated
|
||||||
public class PropertyKey {
|
public class PropertyKey {
|
||||||
/**
|
/**
|
||||||
* Socket Address returns the InetSocketAddress of the Bedrock player
|
* Socket Address returns the InetSocketAddress of the Bedrock player
|
||||||
|
|||||||
Reference in New Issue
Block a user