protected Bag<Component> getAll(Entity entity) {
		Bag<Component> componentBag = new Bag<Component>();
		BitSet componentBits = entity.getComponentBits();
		for (int i = componentBits.nextSetBit(0); i >= 0; i = componentBits
				.nextSetBit(i + 1)) {
			Bag<Component> bag = componentIdToComponents.get(i);
			if (bag != null) {
				componentBag.add(bag.get(entity.getId()));
			}
		}

		return componentBag;
	}