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 Details

    • isPreparing

      boolean isPreparing(@NotNull @NotNull ZentrixGame game)
    • isActive

      boolean isActive(@NotNull @NotNull ZentrixGame game)
    • getWorld

      @NotNull @NotNull Optional<org.bukkit.World> getWorld(@NotNull @NotNull ZentrixGame game)
    • getWorldName

      @NotNull @NotNull Optional<String> getWorldName(@NotNull @NotNull ZentrixGame game)
    • start

      @NotNull @NotNull CompletableFuture<DeathmatchStartResult> start(@NotNull @NotNull ZentrixGame game)
    • getState

      @NotNull default @NotNull DeathmatchState getState(@NotNull @NotNull ZentrixGame game)
      Where a match is with its deathmatch, including a deathmatch No Deathmatch suppressed.
      Since:
      1.8.0
    • getSettings

      @NotNull default @NotNull DeathmatchSettingsSnapshot getSettings()
      The deathmatch configuration of settings.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