public class TimeUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static long |
tick |
Constructor and Description |
---|
TimeUtils() |
Modifier and Type | Method and Description |
---|---|
static int |
hours()
How many hours on
|
static int |
minutes()
How many minutes on
|
static boolean |
onHour(int hour)
Used to check if the current hours is on the time multiple of the given variable
|
static boolean |
onMinute(int minute)
Used to check if the current minutes is on the time multiple of the given variable
|
static boolean |
onSecond(int second)
Used to check if the current seconds is on the time multiple of the given variable
|
void |
onWorldTick(net.minecraftforge.event.TickEvent.WorldTickEvent worldTick) |
static int |
seconds()
The seconds online
|
public static int seconds()
public static int minutes()
public static int hours()
public static boolean onSecond(int second)
second
- What second, for instance checking on 5 will trigger every 5 secondspublic static boolean onMinute(int minute)
minute
- What minute, for instance checking on 5 will trigger every 5 minutespublic static boolean onHour(int hour)
hour
- What hour, for instance checking on 5 will trigger every 5 hourspublic void onWorldTick(net.minecraftforge.event.TickEvent.WorldTickEvent worldTick)