mirror of
https://github.com/AutismDevelopment/Autism-Client.git
synced 2026-10-28 17:29:46 +00:00
Refactor: extract MacroPrearm from MacroExecutor (upstream #4)
Move 24 prearm/capture-commit/MacroValue-builder methods verbatim into MacroPrearm (predicateFuture through waitForPacketMatch). Shared members referenced as MacroExecutor.xxx (mechanical qualification only); staying and earlier-helper call sites re-pointed to MacroPrearm.xxx. PrearmedWait widened to package-visible. All bodies verified identical against HEAD modulo that qualification.
This commit is contained in:
parent
f4fcb7bca9
commit
f014d6e5c0
4 changed files with 587 additions and 565 deletions
|
|
@ -162,7 +162,7 @@ final class MacroCaptureAutofill {
|
|||
|
||||
private static void runCaptureCommandAutofill(Minecraft mc, CaptureValueAction action) {
|
||||
MacroExecutor.RunState run = MacroExecutor.CURRENT_RUN.get();
|
||||
MacroExecutor.clearCaptureOutputs(action);
|
||||
MacroPrearm.clearCaptureOutputs(action);
|
||||
MacroTemplate.Resolution resolved = MacroVariables.resolve(action.autofillCommand, mc);
|
||||
if (!resolved.success() || resolved.value().isBlank()) return;
|
||||
String query = buildAutofillQuery(resolved.value(), action.listFilter, action.listFilterText);
|
||||
|
|
@ -224,7 +224,7 @@ final class MacroCaptureAutofill {
|
|||
|
||||
private static void runCaptureNamescrape(Minecraft mc, CaptureValueAction action) {
|
||||
MacroExecutor.RunState run = MacroExecutor.CURRENT_RUN.get();
|
||||
MacroExecutor.clearCaptureOutputs(action);
|
||||
MacroPrearm.clearCaptureOutputs(action);
|
||||
var connection = mc.getConnection();
|
||||
if (connection == null) return;
|
||||
String cacheKey = " | ||||