public class BedrockClient extends Bedrock
| Constructor and Description |
|---|
BedrockClient(InetSocketAddress bindAddress) |
BedrockClient(InetSocketAddress bindAddress,
EventLoopGroup eventLoopGroup) |
BedrockClient(InetSocketAddress bindAddress,
EventLoopGroup bossGroup,
EventLoopGroup workerGroup) |
| Modifier and Type | Method and Description |
|---|---|
void |
close(boolean force) |
CompletableFuture<BedrockClientSession> |
connect(InetSocketAddress address) |
CompletableFuture<BedrockClientSession> |
connect(InetSocketAddress address,
long timeout,
TimeUnit unit) |
CompletableFuture<BedrockClientSession> |
directConnect(InetSocketAddress address) |
com.nukkitx.network.raknet.RakNetClient |
getRakNet() |
BedrockClientSession |
getSession() |
protected void |
onTick() |
CompletableFuture<BedrockPong> |
ping(InetSocketAddress address) |
CompletableFuture<BedrockPong> |
ping(InetSocketAddress address,
long timeout,
TimeUnit unit) |
void |
setRakNetVersion(int version) |
bind, close, getBindAddress, getBootstrappublic BedrockClient(InetSocketAddress bindAddress)
public BedrockClient(InetSocketAddress bindAddress, EventLoopGroup eventLoopGroup)
public BedrockClient(InetSocketAddress bindAddress, EventLoopGroup bossGroup, EventLoopGroup workerGroup)
public com.nukkitx.network.raknet.RakNetClient getRakNet()
public void setRakNetVersion(int version)
public CompletableFuture<BedrockClientSession> connect(InetSocketAddress address)
public CompletableFuture<BedrockClientSession> connect(InetSocketAddress address, long timeout, TimeUnit unit)
public CompletableFuture<BedrockClientSession> directConnect(InetSocketAddress address)
public CompletableFuture<BedrockPong> ping(InetSocketAddress address)
public CompletableFuture<BedrockPong> ping(InetSocketAddress address, long timeout, TimeUnit unit)
public BedrockClientSession getSession()
Copyright © 2018–2022 NukkitX. All rights reserved.