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

Method Auto

src/main/java/fieldbox/boxes/plugins/Auto.java:30–42  ·  view source on GitHub ↗
(Box root)

Source from the content-addressed store, hash-verified

28
29 public Auto(Box root) {
30
31 root.properties.put(auto, 0); // makes property appear in autocomplete for everyone
32
33 done = new HashMap<>();
34
35 properties.putToMap(Callbacks.onLoad, "__autoload__", (b) -> {
36 // we only auto things once.
37 loaded();
38 return null;
39 });
40 }
41
42 @Override
43 public void loaded() {
44
45 List<Triple<Box, Float, Number>> run = breadthFirst(both()).filter(x -> x.properties.has(auto))

Callers

nothing calls this directly

Calls 3

loadedMethod · 0.95
putToMapMethod · 0.80
putMethod · 0.45

Tested by

no test coverage detected