net.minestom.server.utils.time.TimeUnit Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of minestom-snapshots Show documentation
Show all versions of minestom-snapshots Show documentation
1.20.4 Lightweight Minecraft server
package net.minestom.server.utils.time;
import java.time.temporal.ChronoUnit;
import java.time.temporal.TemporalUnit;
public final class TimeUnit {
public static final TemporalUnit DAY = ChronoUnit.DAYS;
public static final TemporalUnit HOUR = ChronoUnit.HOURS;
public static final TemporalUnit MINUTE = ChronoUnit.MINUTES;
public static final TemporalUnit SECOND = ChronoUnit.SECONDS;
public static final TemporalUnit MILLISECOND = ChronoUnit.MILLIS;
public static final TemporalUnit SERVER_TICK = Tick.SERVER_TICKS;
public static final TemporalUnit CLIENT_TICK = Tick.CLIENT_TICKS;
/**
* @deprecated Please use either {@link #SERVER_TICK} or {@link #CLIENT_TICK}
*/
@Deprecated(forRemoval = true)
public static final TemporalUnit TICK = CLIENT_TICK;
private TimeUnit() {
}
}