MCPcopy Create free account
hub / github.com/DeNA/PacketProxy / createId

Method createId

src/main/java/core/packetproxy/common/UniqueID.java:40–54  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38 }
39
40 public synchronized long createId() throws Exception {
41 while (true) {
42
43 long newId = getNow();
44 if (newId == lastId) {
45
46 Thread.sleep(1);
47 continue;
48 } else if (newId < lastId) {
49
50 err("Time of your pc seemed to be changed...");
51 }
52 return lastId = newId;
53 }
54 }
55
56 private long getNow() throws Exception {
57 return System.currentTimeMillis();

Callers 10

onClientChunkReceivedMethod · 0.80
onServerChunkReceivedMethod · 0.80
onClientChunkSendMethod · 0.80
setGroupIdMethod · 0.80
setGroupIdMethod · 0.80
setGroupIdMethod · 0.80
setGroupIdMethod · 0.80
setGroupIdMethod · 0.80

Calls 2

getNowMethod · 0.95
errMethod · 0.80

Tested by

no test coverage detected