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

Method detach

src/main/java/jace/core/Device.java:264–273  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

262 }
263
264 public void detach() {
265 children.forEach(Device::suspend);
266 children.forEach(Device::detach);
267 Keyboard.unregisterAllHandlers(this);
268 if (this.isRunning()) {
269 this.suspend();
270 }
271 isAttached = false;
272 _ram = null;
273 }
274}

Callers 1

removeChildDeviceMethod · 0.45

Calls 3

unregisterAllHandlersMethod · 0.95
isRunningMethod · 0.95
suspendMethod · 0.95

Tested by

no test coverage detected