He was using the shorthand lambda expression, for the Filter<NPC> before. I don't know why he changed it to what he has now.
getNpcs().closest(new Filter<NPC>() {
@[member='Override']
public boolean match(NPC obj) {
return obj.getHealthPercent() > 1;
}
}) ;
is the same as
getNpcs().closest(npc -> npc.getHealthPercent() > 1);
@@PuppyLover101, change it back to what you had before, where you had the yellow lines. The yellow lines just means there is a warning. It will still compile and run. In eclipse, you can hover over the underlined lines of code and it will tell you what the warning is. It will also give you suggestions on how to fix it. If you can screenshot the warning tool tip, we can help you get rid of it.