idk how to use the getworld command. please help
public void abgrenzung()
{
world1 world1 = new world1();
if( getWorld(world1))
{
if(getX()<300)
{
setLocation(301,getY());
}
}
}