public final class TickUtil extends Object
Modifier and Type | Field and Description |
---|---|
static int |
TICKS_PER_DAY
The length in ticks of one Minecraft day.
|
static int |
TICKS_PER_HALF_DAY
The length in ticks of one Minecraft half day.
|
static int |
TICKS_PER_HOUR
The lenght in ticks of one hour.
|
static short |
TICKS_PER_MINUTE
The length in ticks of one minute.
|
static short |
TICKS_PER_SECOND
The length in ticks of one second.
|
static int |
TICKS_PER_WEEK
The length in ticks of one Minecraft week.
|
Modifier and Type | Method and Description |
---|---|
static int |
minutesToTicks(double minutes)
Converts minutes (double) into ticks.
|
static int |
minutesToTicks(int minutes)
Converts minutes (int) into ticks.
|
static int |
secondsToTicks(int seconds)
Converts seconds (int) into ticks.
|
static long |
secondsToTicks(long seconds)
Converts seconds (long) into ticks.
|
public static final short TICKS_PER_SECOND
public static final short TICKS_PER_MINUTE
public static final int TICKS_PER_HOUR
public static final int TICKS_PER_DAY
public static final int TICKS_PER_HALF_DAY
public static final int TICKS_PER_WEEK
public static int secondsToTicks(int seconds)
seconds
- The seconds to convert.public static long secondsToTicks(long seconds)
seconds
- The seconds to convert.public static int minutesToTicks(int minutes)
minutes
- The minutes to convert.public static int minutesToTicks(double minutes)
minutes
- The minutes to convert.Copyright © 2021. All rights reserved.