PolishCivil Posted April 14, 2014 Posted April 14, 2014 (edited) my v public boolean eatShit() throws InterruptedException { for (Item current : client.getInventory().getItems()) { if (current.getDefinition().getActions() != null) { String[] strings = Arrays.copyOf(current.getDefinition().getActions(), current.getDefinition().getActions().length); Arrays.sort(strings); if (Arrays.binarySearch(strings, "Eat") >= 0) { return client.getInventory().interactWithId(current.getId(), "Eat"); } } } return false; } Edited April 14, 2014 by PolishCivil
Declarative Posted April 15, 2014 Posted April 15, 2014 Wouldn't be so good when you have "Rock cake" ;)