Skip to content

Commit

Permalink
feat(utils): mc time constants
Browse files Browse the repository at this point in the history
  • Loading branch information
lainio24 committed Jun 22, 2022
1 parent fa50ebd commit 4f8e345
Showing 1 changed file with 11 additions and 3 deletions.
Expand Up @@ -4,12 +4,20 @@

public interface MCTimeUtils {

int ticksAtSunrise = 23000;
int ticksAtDayBegin = 0;
int ticksAtDay = 1000;
int ticksAtNoon = 6000;
int ticksAtSunset = 12000;
int ticksAtNight = 13000;
int ticksAtMidnight = 18000;
int ticksAtDayEnd = 24000;

int ticksPerDay = 24000;
int ticksPerHour = 1000;
double ticksPerMinute = 1000d / 60d;
double ticksPerSecond = ticksPerMinute / 60d;
double ticksPerMillisecond = ticksPerSecond / 1000d;
double ticksPerMinute = 1000D / 60D;
double ticksPerSecond = ticksPerMinute / 60D;
double ticksPerMillisecond = ticksPerSecond / 1000D;

static long[] getTime(Level level) {
return new long[] {level.getDayTime(), level.getGameTime(), System.currentTimeMillis()};
Expand Down

0 comments on commit 4f8e345

Please sign in to comment.