public EntityComponent getComponent(int id) {
		Iterator<EntityComponent> it = components.iterator();
		while (it.hasNext()) {
			EntityComponent current = it.next();
			if (current.getId() == id) {
				return current;
			}
		}
		return null;
	}