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

Method get

src/main/java/fielded/Animatable.java:44–64  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42 public Shim(AnimationElement e) {
43 this.e = e;
44 }
45
46 @Override
47 public Boolean get() {
48 try {
49 if (first) {
50 first = false;
51 e.beginning(stopping);
52 return true;
53 } else if (stopping) {
54 e.end(stopping);
55 return false;
56 } else {
57 e.middle(stopping);
58 return true;
59 }
60 } catch (Throwable t) {
61 t.printStackTrace();
62 Errors.INSTANCE.tryToReportTo(t, "Error thrown in box animation, box stopped", null);
63
64 return false;
65 }
66 }
67

Callers

nothing calls this directly

Calls 4

tryToReportToMethod · 0.80
beginningMethod · 0.65
endMethod · 0.65
middleMethod · 0.65

Tested by

no test coverage detected