Class NetherNetPeer
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
org.cloudburstmc.protocol.bedrock.BedrockPeer
org.geysermc.geyser.network.bedrock.GeyserBedrockPeer
org.geysermc.geyser.network.bedrock.nethernet.NetherNetPeer
- All Implemented Interfaces:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable -
Field Summary
Fields inherited from class org.cloudburstmc.protocol.bedrock.BedrockPeer
channel, closed, closeRetryScheduled, closing, flushRetryScheduled, flushScheduled, NAME, packetQueue, sessionFactory, sessions -
Constructor Summary
ConstructorsConstructorDescriptionNetherNetPeer(io.netty.channel.Channel channel, org.cloudburstmc.protocol.bedrock.BedrockSessionFactory sessionFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoidenableEncryption(SecretKey secretKey) intA NetherNet channel has no RakNet protocol version;BedrockPeer.setCompression(org.cloudburstmc.protocol.bedrock.data.PacketCompressionAlgorithm)uses this to pick the compression strategy.Methods inherited from class org.geysermc.geyser.network.bedrock.GeyserBedrockPeer
getRealAddress, setProxiedAddressMethods inherited from class org.cloudburstmc.protocol.bedrock.BedrockPeer
blackholeInboundPackets, channelActive, channelInactive, channelRead, checkForClosed, close, close0, executeOnEventLoop, flushPacketQueue, free, getChannel, getCodec, getCodecHelper, getCompressionStrategy, getSocketAddress, handlerRemoved, isConnected, isConnecting, isOnEventLoop, onBedrockPacket, onClose, onSessionCreated, onTransportDisconnect, removeSession, retryPacketFlush, scheduleFlushTask, schedulePacketFlush, scheduleRejectedRetry, sendPacket, sendPacket, sendPacketImmediately, sendPacketsImmediately, setCodec, setCompression, setCompression, userEventTriggeredMethods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaughtMethods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, isSharableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.netty.channel.ChannelHandler
handlerAdded
-
Constructor Details
-
NetherNetPeer
public NetherNetPeer(io.netty.channel.Channel channel, org.cloudburstmc.protocol.bedrock.BedrockSessionFactory sessionFactory)
-
-
Method Details
-
enableEncryption
- Overrides:
enableEncryptionin classorg.cloudburstmc.protocol.bedrock.BedrockPeer
-
getRakVersion
public int getRakVersion()A NetherNet channel has no RakNet protocol version;BedrockPeer.setCompression(org.cloudburstmc.protocol.bedrock.data.PacketCompressionAlgorithm)uses this to pick the compression strategy.- Overrides:
getRakVersionin classorg.cloudburstmc.protocol.bedrock.BedrockPeer
-