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

Method beKindRewind

src/main/java/jace/state/StateManager.java:406–415  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

404 }
405
406 @InvokableAction(
407 name = "Rewind",
408 alternatives = "Timewarp",
409 description = "Go back 1 second",
410 defaultKeyMapping = {"ctrl+shift+Open Bracket"}
411 )
412 public static void beKindRewind() {
413 StateManager manager = Emulator.withComputer(StateManager::getInstance, null);
414 new Thread(()->manager.rewind(60 / manager.captureFrequency)).start();
415 }
416
417 public void rewind(int numStates) {
418 boolean resume = computer.pause();

Callers 1

initMethod · 0.80

Calls 3

withComputerMethod · 0.95
rewindMethod · 0.95
startMethod · 0.80

Tested by

no test coverage detected