MCPcopy Create free account
hub / github.com/VolmitSoftware/Adapt / doif

Method doif

src/main/java/com/volmit/adapt/util/J.java:44–51  ·  view source on GitHub ↗
(Supplier<Boolean> c, Runnable g)

Source from the content-addressed store, hash-verified

42 }
43
44 public static boolean doif(Supplier<Boolean> c, Runnable g) {
45 if (c.get()) {
46 g.run();
47 return true;
48 }
49
50 return false;
51 }
52
53 public static void a(Runnable a) {
54 MultiBurst.burst.lazy(a);

Callers 1

executeMethod · 0.95

Calls 2

getMethod · 0.65
runMethod · 0.65

Tested by

no test coverage detected