All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.minestom.server.utils.time.TimeUnit Maven / Gradle / Ivy

There is a newer version: 7320437640
Show newest version
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() {
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy