public class RaknetClient extends ReliableClient
org.cloudburstmc.netty:netty-transport-raknet as dependency.| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_ORDERING_CHANNELS |
bootstrap, channelFuture, channelInitializer| Constructor and Description |
|---|
RaknetClient(io.netty.channel.ChannelInitializer<io.netty.channel.Channel> channelInitializer)
Create a new RakNet client.
|
RaknetClient(io.netty.channel.ChannelInitializer<io.netty.channel.Channel> channelInitializer,
UDPChannelType channelType)
Create a new RakNet client.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
configureBootstrap()
Configure the bootstrap channel, event group and options.
|
close, connect, connect, getChannelpublic static final int MAX_ORDERING_CHANNELS
public RaknetClient(io.netty.channel.ChannelInitializer<io.netty.channel.Channel> channelInitializer)
channelInitializer - The channel initializer to usepublic RaknetClient(io.netty.channel.ChannelInitializer<io.netty.channel.Channel> channelInitializer,
UDPChannelType channelType)
channelInitializer - The channel initializer to usechannelType - The channel type to useprotected void configureBootstrap()
ReliableClientconfigureBootstrap in class ReliableClient