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

Method DynamicCheat

src/main/java/jace/cheat/DynamicCheat.java:26–36  ·  view source on GitHub ↗
(String cheatName, int address, int holdValue)

Source from the content-addressed store, hash-verified

24 Callback<RAMEvent, Integer> expressionCallback;
25
26 public DynamicCheat(String cheatName, int address, int holdValue) {
27 super(cheatName, RAMEvent.TYPE.ANY, RAMEvent.SCOPE.ADDRESS, RAMEvent.VALUE.ANY);
28 id = (int) (Math.random() * 10000000);
29 addr = new SimpleIntegerProperty(address);
30 expression = new SimpleStringProperty(String.valueOf(holdValue));
31 isHold = true;
32 active = new SimpleBooleanProperty(false);
33 name = new SimpleStringProperty("Untitled");
34 expressionCallback = (RAMEvent e) -> holdValue;
35 doConfig();
36 }
37
38 boolean isHold = false;
39

Callers

nothing calls this directly

Calls 1

doConfigMethod · 0.95

Tested by

no test coverage detected