Added tick & player handlers to the server to keep track of players and send updates when required.

Client can request a chunk status update (Packet0x02)
OverlayLoadedchunk is now a singleton and will send a request packet when activated.
Player status is saved in the server proxy.
ChunkData is a "static" class to gather chunk related data (loaded chunks for now).
This commit is contained in:
ProfMobius committed 2013-10-28 00:13:05 +01:00
1 parent a04e7bb8fb
commit e676b8dc23
11 files changed
+198 -6

No files matched your search

+8
View File
@@ -1,5 +1,13 @@
package mcp.mobius.opis.proxy;
import java.util.HashMap;
import cpw.mods.fml.common.network.Player;
import mcp.mobius.opis.constants.OverlayStatus;
public class ProxyServer {
public HashMap<Player, OverlayStatus> playerOverlayStatus = new HashMap<Player, OverlayStatus>();
public HashMap<Player, Integer> playerDimension = new HashMap<Player, Integer>();
public void init(){}
}