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

Method tick

src/main/java/jace/cheat/ProgramIdentity.java:88–102  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

86 int counter = 0;
87 String lastChecksum = "";
88 @Override
89 public void tick() {
90 if (counter++ >= INTERVAL) {
91 String checksum = generateChecksum();
92 if (!checksum.equals(lastChecksum)) {
93 String identity = programIdentities.getOrDefault(checksum, "UNKNOWN");
94 System.out.println(checksum + "," + identity);
95 lastChecksum = checksum;
96 }
97 counter = 0;
98 for (int i=0; i < 512; i++) {
99 programRegions[i] = Math.max(0, programRegions[i] - DECAY);
100 }
101 }
102 }
103
104 private void readProgramIdentities() {
105 // Read from resources file

Callers

nothing calls this directly

Calls 2

generateChecksumMethod · 0.95
equalsMethod · 0.45

Tested by

no test coverage detected