Package net.minestom.server.timer
Interface TaskSchedule
public sealed interface TaskSchedule
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic @NotNull TaskScheduleduration(long amount, @NotNull TemporalUnit unit) static @NotNull TaskSchedulestatic @NotNull TaskSchedulefuture(@NotNull CompletableFuture<?> future) static @NotNull TaskSchedulehours(long hours) static @NotNull TaskSchedulestatic @NotNull TaskSchedulemillis(long millis) static @NotNull TaskScheduleminutes(long minutes) static @NotNull TaskSchedulenextTick()static @NotNull TaskSchedulepark()static @NotNull TaskScheduleseconds(long seconds) static @NotNull TaskSchedulestop()static @NotNull TaskScheduletick(int tick)
-
Method Details
-
duration
-
tick
-
future
-
park
-
stop
-
immediate
-
duration
-
nextTick
-
hours
-
minutes
-
seconds
-
millis
-