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

Method MetaCheat

src/main/java/jace/cheat/MetaCheat.java:80–91  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

78 private final ObservableList<State> snapshotList = FXCollections.observableArrayList();
79
80 public MetaCheat() {
81 addNumericValidator(startAddressProperty);
82 addNumericValidator(endAddressProperty);
83 addNumericValidator(searchValueProperty);
84 addNumericValidator(changeByProperty);
85 startAddressProperty.addListener((prop, oldVal, newVal) -> {
86 startAddress = Math.max(0, Math.min(65535, parseInt(newVal)));
87 });
88 endAddressProperty.addListener((prop, oldVal, newVal) -> {
89 endAddress = Math.max(0, Math.min(65535, parseInt(newVal)));
90 });
91 }
92
93 private void addNumericValidator(StringProperty stringProperty) {
94 stringProperty.addListener((ObservableValue<? extends String> prop, String oldVal, String newVal) -> {

Callers

nothing calls this directly

Calls 3

addNumericValidatorMethod · 0.95
parseIntMethod · 0.95
addListenerMethod · 0.45

Tested by

no test coverage detected