예제 #1
0
 @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());
 }
예제 #2
0
 public void progress(int percentage, boolean indeterminate) {
   ui.setProgress(percentage, indeterminate);
 }
예제 #3
0
 public void progress(boolean indeterminate) {
   ui.setProgress(indeterminate);
 }
예제 #4
0
 public void progress(int percentage) {
   ui.setProgress(percentage);
 }
예제 #5
0
 public void status(String status) {
   ui.setStatus(status);
 }
예제 #6
0
 public void log(String text) {
   ui.log(text);
 }
예제 #7
0
 public void clearLog() {
   ui.clearLog();
 }