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

Method withVideo

src/main/java/jace/Emulator.java:129–139  ·  view source on GitHub ↗
(Consumer<jace.core.Video> v)

Source from the content-addressed store, hash-verified

127 }
128
129 public static void withVideo(Consumer<jace.core.Video> v) {
130 withComputer(c->{
131 jace.core.Video video = c.getVideo();
132 if (video != null) {
133 v.accept(video);
134 } else {
135 System.err.println("No video available!");
136 Thread.dumpStack();
137 }
138 });
139 }
140
141 /**
142 * Creates a new instance of Emulator

Callers 12

connectComputerMethod · 0.95
startMethod · 0.95
changeVideoModeMethod · 0.95
setVideoModeMethod · 0.95
_setVideoModeMethod · 0.95
CHANGE_BLACK_COLORMethod · 0.95
stateChangedMethod · 0.95
stateChangedMethod · 0.95
forceRefreshMethod · 0.95
initJoystickReadMethod · 0.95
handleFirmwareAccessMethod · 0.95
handleIOAccessMethod · 0.95

Calls 3

withComputerMethod · 0.95
getVideoMethod · 0.80
acceptMethod · 0.80

Tested by

no test coverage detected