can someone explain to me this \/
catch try {...................}
catch (interruptedException e)
// TODO Auto-generated catch block
e.printStackTrace();
}
im trying to create a farming script, and on the onStart() i want it to do more then one action. But i don't fully understand the (catch............). do i only need one (Catch..........), or more then one, if my onStart() has more then one action.
public void onStart(){
if (client.getInventory().contains(ectophial)
&& !EctoArea.contains(myPlayer())){
try {
this.client.getInventory().interactWithId(ectophial, "Empty");
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
if (myPlayer().getAnimation()== 714) {
while(myPlayer().getAnimation()== 714) {
try {
sleep(1000);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
state = State.WALKTOECTOHERB;
}
}
}