Package org.spoutcraft.launcher.yml

Examples of org.spoutcraft.launcher.yml.YAMLProcessor


    }
  }

  @SuppressWarnings("unchecked")
  public static Map<String, Integer> getMirrors() {
    YAMLProcessor config = getMirrorsYML();
    return (Map<String, Integer>) config.getProperty("mirrors");
  }
View Full Code Here


    }
  }

  public static YAMLProcessor getMirrorsYML() {
    updateMirrorsYMLCache();
    YAMLProcessor config = new YAMLProcessor(mirrorsYML, false);
    try {
      config.load();
    } catch (IOException e) {
      e.printStackTrace();
    }
    return config;
  }
View Full Code Here

    SpoutcraftDirectories dirs = new SpoutcraftDirectories();
    dirs.getSkinDir().mkdirs();
    dirs.getSpoutcraftDir().mkdirs();

    if (Settings.getYAML() == null) {
      YAMLProcessor settings = setupSettings();
      if (settings == null) {
        throw new NullPointerException("The YAMLProcessor object was null for settings.");
      }
      Settings.setYAML(settings);
    }
View Full Code Here

          }
        }
      } catch (Exception e) { }
    }

    return new YAMLProcessor(file, false, YAMLFormat.EXTENDED);
  }
View Full Code Here

      }
      return;
    }

    SpoutcraftLauncher.setupParameters(args);
    YAMLProcessor settings = SpoutcraftLauncher.setupSettings();
    if (settings == null) {
      throw new NullPointerException("The YAMLProcessor object was null for settings.");
    }
    Settings.setYAML(settings);
View Full Code Here

    logger.info("Preloaded " + loaded + " classes in advance");
    finished.set(true);
  }

  private void updateAssets() {
    YAMLProcessor assets = Resources.Assets.getYAML();
    if (assets != null) {
      updateAssets(assets.getMap(), Utils.getAssetsDirectory());
    }
  }
View Full Code Here

TOP

Related Classes of org.spoutcraft.launcher.yml.YAMLProcessor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.