Is there a way to use getWorld() to check if an object exists at a specific coordinate location?
if (getX()==x && getY()==y)
{
//do something
}if (!getObjectsAt(x, y, null).isEmpty())
{
//do something
}
//or in case you want to execute the code in an Actor class
if (!getWorld().getObjectsAt(x, y, null).isEmpty())
{
//do something
}