protected Entity create()
    {
        Entity e = removedAndAvailable.removeLast();
        
        if (e == null)
        {
            e = new Entity(world, nextAvailableId++);
        }
        else
        {
            e.reset();
        }
        
        e.setUniqueId(uniqueEntityId++);
        activeEntities.set(e.getId(), e);
        count++;
        totalCreated++;
        return e;
    }