@ParametersAreNonnullByDefault public class BedrockInterface extends Object implements AdvancedSourceInterface, com.nukkitx.protocol.bedrock.BedrockServerEventHandler
| Constructor and Description |
|---|
BedrockInterface(Server server) |
| Modifier and Type | Method and Description |
|---|---|
void |
blockAddress(InetAddress address) |
void |
blockAddress(InetAddress address,
long timeout,
TimeUnit unit) |
void |
emergencyShutdown() |
org.cloudburstmc.server.network.BedrockInterface.NukkitSessionListener |
initDisconnectHandler(Player player) |
boolean |
onConnectionRequest(InetSocketAddress inetSocketAddress) |
com.nukkitx.protocol.bedrock.BedrockPong |
onQuery(InetSocketAddress inetSocketAddress) |
void |
onSessionCreation(com.nukkitx.protocol.bedrock.BedrockServerSession session) |
void |
onUnhandledDatagram(io.netty.channel.ChannelHandlerContext ctx,
io.netty.channel.socket.DatagramPacket packet) |
boolean |
process() |
void |
sendRawPacket(InetSocketAddress socketAddress,
io.netty.buffer.ByteBuf payload) |
void |
setName(String name) |
void |
setNetwork(Network network) |
void |
shutdown() |
void |
unblockAddress(InetAddress address) |
public boolean onConnectionRequest(InetSocketAddress inetSocketAddress)
onConnectionRequest in interface com.nukkitx.protocol.bedrock.BedrockServerEventHandler@Nullable public com.nukkitx.protocol.bedrock.BedrockPong onQuery(InetSocketAddress inetSocketAddress)
onQuery in interface com.nukkitx.protocol.bedrock.BedrockServerEventHandlerpublic void onSessionCreation(com.nukkitx.protocol.bedrock.BedrockServerSession session)
onSessionCreation in interface com.nukkitx.protocol.bedrock.BedrockServerEventHandlerpublic void blockAddress(InetAddress address)
blockAddress in interface AdvancedSourceInterfacepublic void blockAddress(InetAddress address, long timeout, TimeUnit unit)
blockAddress in interface AdvancedSourceInterfacepublic void unblockAddress(InetAddress address)
unblockAddress in interface AdvancedSourceInterfacepublic void setNetwork(Network network)
setNetwork in interface AdvancedSourceInterfacepublic void sendRawPacket(InetSocketAddress socketAddress, io.netty.buffer.ByteBuf payload)
sendRawPacket in interface AdvancedSourceInterfacepublic void onUnhandledDatagram(io.netty.channel.ChannelHandlerContext ctx,
io.netty.channel.socket.DatagramPacket packet)
onUnhandledDatagram in interface com.nukkitx.protocol.bedrock.BedrockServerEventHandlerpublic void setName(String name)
setName in interface SourceInterfacepublic boolean process()
process in interface SourceInterfacepublic void shutdown()
shutdown in interface SourceInterfacepublic void emergencyShutdown()
emergencyShutdown in interface SourceInterfacepublic org.cloudburstmc.server.network.BedrockInterface.NukkitSessionListener initDisconnectHandler(Player player)
Copyright © 2020. All rights reserved.