static NPC[] interactingNPC() { return Npcs.getLoaded( new Filter<NPC>() { @Override public boolean accept(NPC npc) { return npc.isInteractingWithLocalPlayer(); } }); }
public NPC getBestNPC() { return Npcs.getNearest( new Filter<NPC>() { @Override public boolean accept(NPC filterNPC) { boolean a = (Arrays.toString(InteractEither.this.interactable).contains(filterNPC.getName()) && compareArrays(InteractEither.this.interactions, filterNPC.getActions()) .length > 0); boolean b = (compareArrays(InteractEither.this.interactions, filterNPC.getActions()).length > 0); return b; } }); }