Interface HandshakeHandlers


@Deprecated public interface HandshakeHandlers
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).
It might be replaced with an event (probably internal), but that isn't certain yet.
  • Method Details

    • addHandshakeHandler

      int addHandshakeHandler(HandshakeHandler handshakeHandler)
      Deprecated.
      Register a custom handshake handler. This can be used to check and edit the player during the handshake handling.
      Parameters:
      handshakeHandler - the handshake handler to register
      Returns:
      a random (unique) int to identify this handshake handler or -1 if null
    • removeHandshakeHandler

      void removeHandshakeHandler(int handshakeHandlerId)
      Deprecated.
      Removes a custom handshake handler by id.
      Parameters:
      handshakeHandlerId - the id of the handshake handler to remove
    • removeHandshakeHandler

      void removeHandshakeHandler(Class<? extends HandshakeHandler> handshakeHandler)
      Deprecated.
      Remove a custom handshake handler by instance.
      Parameters:
      handshakeHandler - the instance to remove