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

Method perform

src/main/java/field/graphics/BaseScene.java:33–57  ·  view source on GitHub ↗
(int pass)

Source from the content-addressed store, hash-verified

31 }
32
33 @Override
34 public boolean perform(int pass) {
35
36 if (hasInitedOnce && disabled.get()) return true;
37
38 if (pass == getPasses()[0]) {
39 t_state s = GraphicsContext.get(this, () -> setup());
40
41 hasInitedOnce = true;
42
43 if (disabled.get()) {
44 return true;
45 }
46
47 if (s.mod != mod) s.mod = upload(s);
48
49 update(pass, this::perform0);
50 }
51
52 if (disabled.get()) return true;
53
54 if (getPasses().length > 1) if (pass == getPasses()[1]) this.perform1();
55
56 return true;
57 }
58
59 protected int upload(t_state s) {
60 return mod;

Callers

nothing calls this directly

Calls 7

getMethod · 0.95
setupMethod · 0.95
uploadMethod · 0.95
perform1Method · 0.95
getMethod · 0.65
getPassesMethod · 0.65
updateMethod · 0.65

Tested by

no test coverage detected