public abstract class BedrockChannelInitializer<T extends BedrockSession>
extends io.netty.channel.ChannelInitializer<io.netty.channel.Channel>
| Modifier and Type | Field and Description |
|---|---|
static int |
RAKNET_MINECRAFT_ID |
| Constructor and Description |
|---|
BedrockChannelInitializer() |
| Modifier and Type | Method and Description |
|---|---|
protected BedrockPeer |
createPeer(io.netty.channel.Channel channel) |
protected T |
createSession(BedrockPeer peer,
int subClientId) |
protected abstract T |
createSession0(BedrockPeer peer,
int subClientId) |
static CompressionStrategy |
getCompression(org.cloudburstmc.protocol.bedrock.data.CompressionAlgorithm algorithm,
int rakVersion,
boolean initial) |
protected void |
initChannel(io.netty.channel.Channel channel) |
protected void |
initPacketCodec(io.netty.channel.Channel channel) |
protected abstract void |
initSession(T session) |
protected void |
postInitChannel(io.netty.channel.Channel channel) |
protected void |
preInitChannel(io.netty.channel.Channel channel) |
channelRegistered, exceptionCaught, handlerAdded, handlerRemovedpublic static final int RAKNET_MINECRAFT_ID
protected final void initChannel(io.netty.channel.Channel channel)
throws java.lang.Exception
initChannel in class io.netty.channel.ChannelInitializer<io.netty.channel.Channel>java.lang.Exceptionprotected void preInitChannel(io.netty.channel.Channel channel)
throws java.lang.Exception
java.lang.Exceptionpublic static CompressionStrategy getCompression(org.cloudburstmc.protocol.bedrock.data.CompressionAlgorithm algorithm, int rakVersion, boolean initial)
protected void postInitChannel(io.netty.channel.Channel channel)
throws java.lang.Exception
java.lang.Exceptionprotected void initPacketCodec(io.netty.channel.Channel channel)
throws java.lang.Exception
java.lang.Exceptionprotected BedrockPeer createPeer(io.netty.channel.Channel channel)
protected final T createSession(BedrockPeer peer, int subClientId)
protected abstract T createSession0(BedrockPeer peer, int subClientId)
protected abstract void initSession(T session)