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

Method traverseAndDraw

src/main/java/fieldbox/boxes/Meshes.java:39–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37
38 // Exception handling!
39 protected void traverseAndDraw() {
40 this.forEach(x -> {
41 if (!x.properties.has(meshes)) return;
42 IdempotencyMap<Supplier<BaseMesh>> m = x.properties.get(meshes);
43 if (m.size() == 0) return;
44
45 m.values().stream().filter(z -> z != null).map(z -> z.get()).filter(z -> z != null).forEach(z -> {
46 draw(z);
47 });
48 });
49 }
50
51 private void draw(BaseMesh x) {
52 for (int i : x.getPasses()) {

Callers

nothing calls this directly

Calls 7

drawMethod · 0.95
getMethod · 0.65
forEachMethod · 0.45
hasMethod · 0.45
sizeMethod · 0.45
mapMethod · 0.45
streamMethod · 0.45

Tested by

no test coverage detected