MCPcopy Create free account
hub / github.com/badvision/jace / doEvent

Method doEvent

src/main/java/jace/cheat/DynamicCheat.java:47–58  ·  view source on GitHub ↗
(RAMEvent e)

Source from the content-addressed store, hash-verified

45 }
46
47 @Override
48 protected void doEvent(RAMEvent e) {
49 if (active.get() && expressionCallback != null) {
50 Integer newVal = expressionCallback.call(e);
51 if (newVal != null) {
52 e.setNewValue(newVal);
53 } else {
54 active.set(false);
55 expressionCallback = null;
56 }
57 }
58 }
59
60 public BooleanProperty activeProperty() {
61 return active;

Callers

nothing calls this directly

Calls 3

setNewValueMethod · 0.80
setMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected