Contents
Class VoiceStreamHandler
java.lang.Object
com.hypixel.hytale.server.core.modules.voice.VoiceStreamHandler
- All Implemented Interfaces:
ConnectionHandler
Handler for the dedicated voice QUIC stream.
Receives voice packets on the dedicated stream and routes them through VoiceModule.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclosed(NetworkChannel networkChannel) Called when the affiliated network channel has been closed.voidhandle(ToServerPacket packet) Called to handle the given incoming packet.voidCalled to log that this handler's connection has been closed.voidregistered(ConnectionHandler oldHandler) Called when this handler is registered on a connection, potentially replacing an old handler.voidunregistered(ConnectionHandler newHandler) Called when this handler is unregistered from a connection, potentially being replaced by a new handler.
-
Constructor Details
-
VoiceStreamHandler
-
-
Method Details
-
registered
Description copied from interface:ConnectionHandlerCalled when this handler is registered on a connection, potentially replacing an old handler.- Specified by:
registeredin interfaceConnectionHandler- Parameters:
oldHandler- The previous handler, or null if this is the first handler
-
handle
Description copied from interface:ConnectionHandlerCalled to handle the given incoming packet.- Specified by:
handlein interfaceConnectionHandler- Parameters:
packet- The packet to be handled
-
closed
Description copied from interface:ConnectionHandlerCalled when the affiliated network channel has been closed.- Specified by:
closedin interfaceConnectionHandler- Parameters:
networkChannel- The network channel that was closed, or null if unknown
-
unregistered
Description copied from interface:ConnectionHandlerCalled when this handler is unregistered from a connection, potentially being replaced by a new handler.- Specified by:
unregisteredin interfaceConnectionHandler- Parameters:
newHandler- The new handler replacing this one, or null
-
logCloseMessage
public void logCloseMessage()Description copied from interface:ConnectionHandlerCalled to log that this handler's connection has been closed.- Specified by:
logCloseMessagein interfaceConnectionHandler
-