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

Method removeChildDevice

src/main/java/jace/core/Device.java:84–93  ·  view source on GitHub ↗
(Device d)

Source from the content-addressed store, hash-verified

82 }
83
84 public void removeChildDevice(Device d) {
85 if (d == null) {
86 return;
87 }
88 children.remove(d);
89 d.suspend();
90 d.detach();
91 childrenArray = children.toArray(Device[]::new);
92 updateTickHandler();
93 }
94
95 public void addAllDevices(Iterable<Device> devices) {
96 devices.forEach(this::addChildDevice);

Callers 1

setVideoMethod · 0.80

Calls 4

updateTickHandlerMethod · 0.95
removeMethod · 0.80
suspendMethod · 0.45
detachMethod · 0.45

Tested by

no test coverage detected