private static Terrain getNewTerrain(String s, Map m) {
        Vector3f pos = new Vector3f(Float.valueOf(s.split(" ")[2]),
                                    Float.valueOf(s.split(" ")[3]),
                                    Float.valueOf(s.split(" ")[4]));
        int type = Integer.parseInt(s.split(" ")[1]);
        Terrain.TerrainInfo ti;
        switch (type) {
            case Terrain.FLOOR_ID: ti = Terrain.FLOOR_INFO; break;
            case Terrain.GROUND_ID: ti = Terrain.GROUND_INFO; break;
            case Terrain.WALL_ID: ti = Terrain.WALL_INFO; break;
            case Terrain.NULL_ID: ti = Terrain.NULL_INFO; break;
            case Terrain.WATER_ID: ti = Terrain.WALL_INFO; break;
            case Terrain.TREE_ID: ti = Terrain.TREE_INFO; break;
            default: ti = Terrain.FLOOR_INFO; break;
        }
        return new Terrain(m, ti, pos);
    }