MCPcopy Create free account
hub / github.com/badvision/jace / rewind

Method rewind

src/main/java/jace/state/StateManager.java:417–432  ·  view source on GitHub ↗
(int numStates)

Source from the content-addressed store, hash-verified

415 }
416
417 public void rewind(int numStates) {
418 boolean resume = computer.pause();
419 State state = alphaState.tail;
420 while (numStates > 0 && state.previousState != null) {
421 state = state.previousState;
422 numStates--;
423 }
424 state.apply();
425 alphaState.tail = state;
426 state.nextState = null;
427 Video.forceRefresh();
428 System.gc();
429 if (resume) {
430 computer.resume();
431 }
432 }
433}

Callers 5

beKindRewindMethod · 0.95
compileToRamMethod · 0.80
executeMethod · 0.80
MediaMethod · 0.80
restartMethod · 0.80

Calls 4

applyMethod · 0.95
forceRefreshMethod · 0.95
pauseMethod · 0.45
resumeMethod · 0.45

Tested by

no test coverage detected