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

Method setCurrentValue

src/main/java/jace/state/StateManager.java:88–98  ·  view source on GitHub ↗
(Object value)

Source from the content-addressed store, hash-verified

86 switchNode.name = s.toString();
87 ObjectGraphNode switchVar = new ObjectGraphNode(s.getSwitch()) {
88 @Override
89 /**
90 * This is a more efficient way of updating the softswitch
91 * states And really in a way this works out much better to
92 * ensure that memory and graphics pages are set up correctly
93 * when resuming states.
94 */
95 public void setCurrentValue(Object value) {
96 Boolean b = (Boolean) value;
97 ss.getSwitch().setState(b);
98 }
99
100 @Override
101 public Object getCurrentValue() {

Callers 1

applyMethod · 0.45

Calls 2

getSwitchMethod · 0.80
setStateMethod · 0.45

Tested by

no test coverage detected