/** * @param name * @param location * @param callback */ public static void run(String name, Location location, MacroCallback callback) { MacroCommandExecuter macroCommandExecuter = MacroCommandExecuter.getInstance(); Macro macro = macroCommandExecuter.getMacro(name); if (macro == null) { throw new RuntimeException("Can not find macro " + name); } macro.run(location, callback); }
/** * @param name * @param location */ public static void run(String name, Location location) { MacroCommandExecuter.run(name, location, null); }