(Consumer<jace.core.Video> v)
| 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 |
no test coverage detected