Package net.minestom.server.timer
Interface TaskSchedule
public sealed interface TaskSchedule
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull TaskSchedule
duration
(long amount, @NotNull TemporalUnit unit) static @NotNull TaskSchedule
static @NotNull TaskSchedule
future
(@NotNull CompletableFuture<?> future) static @NotNull TaskSchedule
hours
(long hours) static @NotNull TaskSchedule
static @NotNull TaskSchedule
millis
(long millis) static @NotNull TaskSchedule
minutes
(long minutes) static @NotNull TaskSchedule
nextTick()
static @NotNull TaskSchedule
park()
static @NotNull TaskSchedule
seconds
(long seconds) static @NotNull TaskSchedule
stop()
static @NotNull TaskSchedule
tick
(int tick)
-
Method Details
-
duration
-
tick
-
future
-
park
-
stop
-
immediate
-
duration
-
nextTick
-
hours
-
minutes
-
seconds
-
millis
-