@EventHandler public void onHealthUpdate(HealthUpdateEvent event) { ui.updateStatus(); if (loadingState == 3) { loadingState = 4; status("Connected."); progress(100); } if (event.getHealth() <= 0) bot.getEventManager().sendEvent(new RequestRespawnEvent()); }
public void progress(int percentage, boolean indeterminate) { ui.setProgress(percentage, indeterminate); }
public void progress(boolean indeterminate) { ui.setProgress(indeterminate); }
public void progress(int percentage) { ui.setProgress(percentage); }
public void status(String status) { ui.setStatus(status); }
public void log(String text) { ui.log(text); }
public void clearLog() { ui.clearLog(); }