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

Method attach

src/main/java/field/graphics/Scene.java:85–89  ·  view source on GitHub ↗

A (int pass, Consumer ) tuple can be effectively cast as a Perform. The int says what pass the consumer should be run for, and the consumer is called for that pass

(int pass, Consumer<Integer> p)

Source from the content-addressed store, hash-verified

83 * A (int pass, Consumer<Integer>) tuple can be effectively cast as a Perform. The int says what pass the consumer should be run for, and the consumer is called for that pass
84 */
85 public boolean attach(int pass, Consumer<Integer> p) {
86 Set<Consumer<Integer>> c = internalScene.get(pass);
87 if (c == null) internalScene.put(pass, c = new LinkedHashSet<Consumer<Integer>>());
88 return c.add(p);
89 }
90
91 /**
92 * A (int pass, String tag, Consumer<Integer>) tuple can be effectively cast as a Perform. The int says what pass the consumer should be run for, and the consumer is called for that pass.

Callers 15

getDefaultBundleMethod · 0.95
asMap_setMethod · 0.95
defineOptionsFunction · 0.45
defineOptionsFunction · 0.45
getRemoteEditorMethod · 0.45
afterOpenMethod · 0.45
ServerMethod · 0.45
attachToShaderMethod · 0.45
loadedMethod · 0.45
toTextureWhenReadyMethod · 0.45
loadedMethod · 0.45
hideMethod · 0.45

Calls 7

detachMethod · 0.95
computeIfAbsentMethod · 0.80
getMethod · 0.65
getPassesMethod · 0.65
putMethod · 0.45
addMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected