示例#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;
  }
 static {
   // LiteLoader init
   LiteLoader.getInstance();
 }
 @Override
 public void init(File configPath) {
   LiteLoader.getInput().registerKeyBinding(LiteModExample.toggleJumpKeybinding);
 }