Package dev.itsharshxd.zentrix.api.world
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 Summary
Modifier and TypeMethodDescriptionbooleanbelongsToGame(@NotNull ZentrixGame game, @NotNull String worldName) booleanbelongsToGame(@NotNull ZentrixGame game, @NotNull org.bukkit.World world) @NotNull Map<GameWorldType, String> getKnownWorldNames(@NotNull ZentrixGame game) @NotNull StringgetRuntimeScopeKey(@NotNull String worldName) @NotNull StringgetRuntimeScopeKey(@NotNull org.bukkit.entity.Player player) @NotNull Optional<org.bukkit.World> getWorld(@NotNull ZentrixGame game, @NotNull GameWorldType type) getWorldName(@NotNull ZentrixGame game, @NotNull GameWorldType type) @NotNull Optional<GameWorldType> getWorldType(@NotNull ZentrixGame game, @NotNull String worldName) @NotNull Optional<GameWorldType> getWorldType(@NotNull ZentrixGame game, @NotNull org.bukkit.World world) @NotNull Optional<ZentrixGame> resolveGame(@NotNull String worldName) @NotNull Optional<ZentrixGame> resolveGame(@NotNull org.bukkit.World world) @NotNull Optional<ZentrixGame> resolveGame(@NotNull org.bukkit.entity.Player player)
-
Method Details
-
resolveGame
@NotNull @NotNull Optional<ZentrixGame> resolveGame(@NotNull @NotNull org.bukkit.entity.Player player) -
resolveGame
-
resolveGame
-
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
-
belongsToGame
-
belongsToGame
-
getRuntimeScopeKey
-
getRuntimeScopeKey
-