NPC seagull = npcs.Closest(n -> n.getName().equals("Seagull") && !n.isUnderAttack() && n.getInteracting() == null);
something along those lines. it will search for an seagul, that is called Seagull , is not underattack, and isnt interacting with anyone.