Back to project page Spidermine.
The source code is released under:
Copyright ? 2014 PEMapModder This software is open-source and everyone is welcome to share redistributions or modifications, as long as it is clearly specified that this project's original source is ...
If you think the Android project Spidermine listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package pemapmodder.old_spidermine.managers; // w w w . j a va 2 s . c om import pemapmodder.old_spidermine.SpiderServer; public class ServerManager implements Manager<SpiderServer, Integer>{ public static ServerManager[] servers={}; public static SpiderServer getServer(Integer port){ for(int i=0;i<servers.length;i++){ if(servers[i].server.port==port) return servers[i].server; } return null; } public SpiderServer server; public ServerManager(SpiderServer server){ servers[servers.length]=this; } @Override public SpiderServer get(Integer id) { return getServer(id); } public CmdManager cmd; public WorldManager world; public UserManager user; public EntityManager entity; public TileManager tile; }