Пример #1
0
 public static void setVisibility(Class extension, boolean isVisible) {
   for (GuiExtension e : getGui()) {
     if (e.getClass().equals(extension)) {
       e.setVisibility(isVisible);
       break;
     }
   }
 }
Пример #2
0
  public static GuiExtension getInstance(Class extension) {
    for (GuiExtension e : getGui()) {
      if (e.getClass().equals(extension)) {
        return e;
      }
    }

    return null;
  }
Пример #3
0
  public static boolean hasPopupOpen() {
    for (GuiExtension e : getGui()) {
      if (e instanceof IPopupIDoItellYou) {
        if (e.isVisible()) {
          return true;
        }
      }
    }

    return false;
  }