public void render(Level level, ScreenEngine2D screen, int y0, int y1, int x0, int x1) {
		for (int y = y0; y < y1; y++) {
			for (int x = x0; x < x1; x++) {
				if(type.equals(LayerType.DEFAULT_LAYER)) {
					level.getTileLayer(this,x,y).render(x, y, screen, this);
				} else if(type.equals(LayerType.COLLISION_LAYER)) {
					level.getTileLayerCollision(this,x,y).render(x, y, screen, this);
				} else if(type.equals(LayerType.LIGHTING_LAYER)) {
					screen.renderPixelWithAlpha(x, y, 0, tiles[x + (y * (level.getWidth() << 32))]);
				}
			}
		}
		if(!entities.isEmpty()) {
			for(int e = 0; e < entities.size(); e++) {
				entities.get(e).render(screen);
			}
		}
	}