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

Method addChildDevice

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

Source from the content-addressed store, hash-verified

71 }
72
73 public void addChildDevice(Device d) {
74 if (d == null || children.contains(d) || d.equals(this)) {
75 return;
76 }
77 d.parentDevice = this;
78 children.add(d);
79 d.attach();
80 childrenArray = children.toArray(Device[]::new);
81 updateTickHandler();
82 }
83
84 public void removeChildDevice(Device d) {
85 if (d == null) {

Callers 3

setVideoMethod · 0.80
reconfigureMethod · 0.80
CardMockingboardMethod · 0.80

Calls 4

updateTickHandlerMethod · 0.95
addMethod · 0.80
equalsMethod · 0.45
attachMethod · 0.45

Tested by

no test coverage detected