예제 #1
0
  /**
   * Get the singleton instance of LiteLoader, initialises the loader if necessary
   *
   * @return LiteLoader instance
   */
  public static final LiteLoader getInstance() {
    if (instance == null) {
      // Return immediately to stop calls to getInstance causing re-init if they arrive
      // before init is completed
      instance = new LiteLoader();
      instance.initLoader();
    }

    return instance;
  }
예제 #2
0
 static {
   // LiteLoader init
   LiteLoader.getInstance();
 }
 @Override
 public void init(File configPath) {
   LiteLoader.getInput().registerKeyBinding(LiteModExample.toggleJumpKeybinding);
 }