i tried getobjectsinrange, with capitals, but i dont know what to but after it
if (!getObjectsInRange(5, Worm.class).isEmpty())
{
Worm worm = (Worm)getObjectsInRange(5, Worm.class).get(0);List<Enemy> enemies = getObjectsInRange(50, Enemy.class);//now 50 is the radius and Enemy.class is the class you are searching for;
import java.util.List;
List<Enemy> enemies = (List<Enemy>)getObjectsInRange(50, Enemy.class);