mirror of
https://github.com/GTNewHorizons/Gadomancy.git
synced 2026-11-21 20:42:12 +00:00
Creating more convenient methods
This commit is contained in:
1 parent
97dc2e0408
commit
57e38b02ad
1 file changed
+8
@@ -37,6 +37,14 @@ public final class MiscUtils {
|
||||
}
|
||||
return "th";
|
||||
}
|
||||
|
||||
public static int ticksForDays(int days) {
|
||||
return ticksForHours(days * 24);
|
||||
}
|
||||
|
||||
public static int ticksForHours(int hours) {
|
||||
return ticksForMinutes(hours * 60);
|
||||
}
|
||||
|
||||
public static int ticksForMinutes(int minutes) {
|
||||
return ticksForSeconds(minutes * 60);
|
||||
|
||||
Reference in new issue
Block a user