public void checkCollisions()
	{
		for(int i = 0;i<world.entities.size();i++)
		{
			Entity e = world.entities.get(i);
			if(e != this)
			if(e != null && !alreadyCollisionsChecked.contains(e))
			{
				if(e.clipAABB().collide(clipAABB()))
				{
					e.onCollide(this);
					this.onCollide(e);
				}
				e.alreadyCollisionsChecked.add(this);
			}
		}
		doBlockCollisions();
		alreadyCollisionsChecked.clear();
	}