use of de.dytanic.cloudnet.lib.network.protocol.file.FileDeploy in project CloudNet by Dytanic.
the class NetDispatcher method channelRead0.
@Override
protected void channelRead0(ChannelHandlerContext channelHandlerContext, Object o) throws Exception {
if (o instanceof Packet) {
TaskScheduler.runtimeScheduler().schedule(new Runnable() {
@Override
public void run() {
networkConnection.getPacketManager().dispatchPacket(((Packet) o), networkConnection);
}
});
} else {
if (o instanceof FileDeploy) {
FileDeploy deploy = ((FileDeploy) o);
TaskScheduler.runtimeScheduler().schedule(new Runnable() {
@Override
public void run() {
deploy.toWrite();
}
});
}
}
}
Aggregations