* Checks if the passed entity matches this family's requirements.
* @param entity The entity to check for matching
* @return Whether the entity matches or not
*/
public boolean matches(Entity entity){
Bits entityComponentBits = entity.getComponentBits();
if(entityComponentBits.isEmpty())
return false;
for (int i = all.nextSetBit(0); i >= 0; i = all.nextSetBit(i+1)){
if(!entityComponentBits.get(i))
return false;
}
if (!one.isEmpty() && !one.intersects(entityComponentBits)) {
return false;