public class BedrockServer extends Bedrock
| Constructor and Description |
|---|
BedrockServer(InetSocketAddress bindAddress) |
BedrockServer(InetSocketAddress bindAddress,
int maxThreads) |
BedrockServer(InetSocketAddress bindAddress,
int maxThreads,
ScheduledExecutorService scheduler) |
BedrockServer(InetSocketAddress bindAddress,
int maxThreads,
ScheduledExecutorService scheduler,
Executor executor) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
close(String reason) |
BedrockServerEventHandler |
getHandler() |
protected void |
onTick() |
void |
setHandler(BedrockServerEventHandler handler) |
bind, getBindAddress, getBootstrappublic BedrockServer(InetSocketAddress bindAddress)
public BedrockServer(InetSocketAddress bindAddress, int maxThreads)
public BedrockServer(InetSocketAddress bindAddress, int maxThreads, ScheduledExecutorService scheduler)
public BedrockServer(InetSocketAddress bindAddress, int maxThreads, ScheduledExecutorService scheduler, Executor executor)
public BedrockServerEventHandler getHandler()
public void setHandler(BedrockServerEventHandler handler)
public void close(String reason)
Copyright © 2018–2019 NukkitX. All rights reserved.