Interface RuntimeWorldService


public interface RuntimeWorldService
Read-only runtime-world ownership and shared-scope resolution. Methods accepting Bukkit Player or World objects should be called on the server main thread. Returned maps are immutable snapshots.
Since:
1.3.0
  • Method Details

    • resolveGame

      @NotNull @NotNull Optional<ZentrixGame> resolveGame(@NotNull @NotNull org.bukkit.entity.Player player)
    • resolveGame

      @NotNull @NotNull Optional<ZentrixGame> resolveGame(@NotNull @NotNull org.bukkit.World world)
    • resolveGame

      @NotNull @NotNull Optional<ZentrixGame> resolveGame(@NotNull @NotNull String worldName)
    • getWorldType

      @NotNull @NotNull Optional<GameWorldType> getWorldType(@NotNull @NotNull ZentrixGame game, @NotNull @NotNull org.bukkit.World world)
    • getWorldType

      @NotNull @NotNull Optional<GameWorldType> getWorldType(@NotNull @NotNull ZentrixGame game, @NotNull @NotNull String worldName)
    • getWorld

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

      @NotNull @NotNull Optional<String> getWorldName(@NotNull @NotNull ZentrixGame game, @NotNull @NotNull GameWorldType type)
    • getKnownWorldNames

      @NotNull @NotNull Map<GameWorldType,String> getKnownWorldNames(@NotNull @NotNull ZentrixGame game)
    • belongsToGame

      boolean belongsToGame(@NotNull @NotNull ZentrixGame game, @NotNull @NotNull org.bukkit.World world)
    • belongsToGame

      boolean belongsToGame(@NotNull @NotNull ZentrixGame game, @NotNull @NotNull String worldName)
    • getRuntimeScopeKey

      @NotNull @NotNull String getRuntimeScopeKey(@NotNull @NotNull org.bukkit.entity.Player player)
    • getRuntimeScopeKey

      @NotNull @NotNull String getRuntimeScopeKey(@NotNull @NotNull String worldName)