public static void main(String[] args) { ServerMainListener tcp = new ServerMainListener(); udp = new UDPListener80(); ProbeThread pt = new ProbeThread(); Log log = new Log(); Log.init(log); synchronized (Log.getInstance()) { Log.getInstance().addDatedText("Starting server.", true); } udp.start(); pt.start(); tcp.run(); }
public Chunk call() throws Exception { SavableChunk savable = (SavableChunk) new SaveHelper().loadCompressedFile(basepath + "/" + x + ".trc"); Chunk chunk = new Chunk(Biome.getBiomeFromBiomeList(savable.biomeID), savable.x, savable.height); chunk.backWalls = convertFromSavable(savable.backWalls); chunk.blocks = convertFromSavable(savable.blocks); chunk.addLightSources(savable.lightPositions); Log.log("Chunk Loaded From File Path : " + basepath + "/" + x + ".trc"); manager.unlockChunk(chunk.getX()); return chunk; }