Re-implement scheduler system (check #1321)

This commit is contained in:
KingRainbow44
2022-06-22 00:46:34 -04:00
parent 63b6b805cc
commit 0cb490605e
5 changed files with 391 additions and 40 deletions

View File

@@ -1,9 +1,33 @@
package emu.grasscutter.server.event.game;
import emu.grasscutter.server.event.types.ServerEvent;
import java.time.Instant;
import java.time.Instant;
public final class ServerTickEvent extends ServerEvent {
public ServerTickEvent() {
private final Instant start, end;
public ServerTickEvent(Instant start, Instant end) {
super(Type.GAME);
this.start = start;
this.end = end;
}
}
public Instant getTickStart() {
return this.start;
}
public Instant getTickEnd() {
return this.end;
}
public Instant getTickStart() {
return this.start;
}
public Instant getTickEnd() {
return this.end;
}
}