Package com.earth2me.essentials.utils
Class DescParseTickFormat
java.lang.Object
com.earth2me.essentials.utils.DescParseTickFormat
This utility class is used for converting between the ingame time in ticks to ingame time as a friendly string. Note
that the time is INGAME.
http://www.minecraftwiki.net/wiki/Day/night_cycle
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final double
static final double
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
format
(long ticks) static String
format12
(long ticks) static String
format24
(long ticks) static String
formatDateFormat
(long ticks, SimpleDateFormat format) static String
formatTicks
(long ticks) static long
hoursMinutesToTicks
(int hours, int minutes) static boolean
meansReset
(String desc) static long
static long
static long
static long
parseAlias
(String desc) static long
parseTicks
(String desc) static Date
ticksToDate
(long ticks)
-
Field Details
-
nameToTicks
-
resetAliases
-
ticksAtMidnight
public static final int ticksAtMidnight- See Also:
-
ticksPerDay
public static final int ticksPerDay- See Also:
-
ticksPerHour
public static final int ticksPerHour- See Also:
-
ticksPerMinute
public static final double ticksPerMinute- See Also:
-
ticksPerSecond
public static final double ticksPerSecond- See Also:
-
-
Method Details
-
parse
- Throws:
NumberFormatException
-
parseTicks
- Throws:
NumberFormatException
-
parse24
- Throws:
NumberFormatException
-
parse12
- Throws:
NumberFormatException
-
hoursMinutesToTicks
public static long hoursMinutesToTicks(int hours, int minutes) -
parseAlias
- Throws:
NumberFormatException
-
meansReset
-
format
-
formatTicks
-
format24
-
format12
-
formatDateFormat
-
ticksToDate
-