Interface DeathmatchService
public interface DeathmatchService
Deathmatch state and nonblocking startup.
start(dev.itsharshxd.zentrix.api.game.ZentrixGame) may be called from
any thread; Bukkit lifecycle events are dispatched synchronously.- Since:
- 1.3.0
-
Method Summary
Modifier and TypeMethodDescriptiondefault @NotNull DeathmatchSettingsSnapshotThe deathmatch configuration ofsettings.yml.default @NotNull DeathmatchStategetState(@NotNull ZentrixGame game) Where a match is with its deathmatch, including a deathmatch No Deathmatch suppressed.@NotNull Optional<org.bukkit.World> getWorld(@NotNull ZentrixGame game) getWorldName(@NotNull ZentrixGame game) booleanisActive(@NotNull ZentrixGame game) default booleanisFrozen(org.bukkit.entity.Player player) Whether a player is held in place by the freeze that follows arriving in the deathmatch.booleanisPreparing(@NotNull ZentrixGame game) @NotNull CompletableFuture<DeathmatchStartResult> start(@NotNull ZentrixGame game) default booleanunfreeze(org.bukkit.entity.Player player) Releases a player from the deathmatch arrival freeze early.
-
Method Details
-
isPreparing
-
isActive
-
getWorld
-
getWorldName
-
start
@NotNull @NotNull CompletableFuture<DeathmatchStartResult> start(@NotNull @NotNull ZentrixGame game) -
getState
Where a match is with its deathmatch, including a deathmatch No Deathmatch suppressed.- Since:
- 1.8.0
-
getSettings
The deathmatch configuration ofsettings.yml.- Since:
- 1.8.0
-
isFrozen
default boolean isFrozen(@NotNull org.bukkit.entity.Player player) Whether a player is held in place by the freeze that follows arriving in the deathmatch.- Since:
- 1.8.0
-
unfreeze
default boolean unfreeze(@NotNull org.bukkit.entity.Player player) Releases a player from the deathmatch arrival freeze early. Main thread only.- Returns:
- whether the player had been frozen
- Since:
- 1.8.0
-