MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / collectChildrenPasses

Method collectChildrenPasses

src/main/java/field/graphics/Scene.java:183–203  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

181 }
182
183 protected TreeMap<Integer, Set<Consumer<Integer>>> collectChildrenPasses() {
184
185
186 if (this.children()
187 .size() == 0) return null;
188
189 TreeMap<Integer, Set<Consumer<Integer>>> t = new TreeMap<>();
190
191 for (Box c : children()) {
192 LinkedHashMapAndArrayList<Perform> p = c.properties.get(passes);
193 if (p == null) continue;
194 for (Perform pp : p.values()) {
195 int[] ap = pp.getPasses();
196 for (int x : ap)
197 t.computeIfAbsent(x, k -> new LinkedHashSet<>())
198 .add(pp);
199 }
200 }
201
202 return t;
203 }
204
205 /**
206 * updates everything in the internalScene. This is the main entry point for performing a complete update cycle.

Callers 2

updateMethod · 0.95
linkAndValidateNowMethod · 0.80

Calls 6

childrenMethod · 0.80
computeIfAbsentMethod · 0.80
getMethod · 0.65
getPassesMethod · 0.65
sizeMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected