The class I'm trying to use it in (Block.class):
public class Block extends Actor
{
int y = Player.getY();
public Block()
{
getImage().scale(20, 20);
}
public void act()
{
if(isTouching(Block.class))
{
removeTouching(Block.class);
}
}
public boolean checkPlayer()
{
if(y == this.getY()-20) return true;
return false;
}
}

