Interface NetherService
public interface NetherService
Per-game Nether status and access control. Status queries read Bukkit world
state and should run on the main thread.
setAccess(dev.itsharshxd.zentrix.api.game.ZentrixGame, dev.itsharshxd.zentrix.api.nether.NetherToggleRequest) is safe to call
from any thread and completes after the request is applied or queued.- Since:
- 1.3.0
-
Method Summary
Modifier and TypeMethodDescription@NotNull NetherStatusgetStatus(@NotNull ZentrixGame game) @NotNull Optional<org.bukkit.World> getWorld(@NotNull ZentrixGame game) getWorldName(@NotNull ZentrixGame game) default booleanisAccessEnabled(@NotNull ZentrixGame game) default booleanisConfigured(@NotNull ZentrixGame game) default booleanisPrepared(@NotNull ZentrixGame game) default booleanisPreparing(@NotNull ZentrixGame game) @NotNull CompletableFuture<NetherToggleResult> setAccess(@NotNull ZentrixGame game, @NotNull NetherToggleRequest request)
-
Method Details
-
getStatus
-
getWorld
-
getWorldName
-
isConfigured
-
isPreparing
-
isPrepared
-
isAccessEnabled
-
setAccess
@NotNull @NotNull CompletableFuture<NetherToggleResult> setAccess(@NotNull @NotNull ZentrixGame game, @NotNull @NotNull NetherToggleRequest request)
-