ZombieSurvivalGameLauncher

Opens evermod:zombie_survival using a programmatically constructed config.

The mob list is baked into the config at open time. When joining an existing lobby via joinOrOpen, the existing game's mob list is used (no override). The GUI calls open with a custom mob list; joinOrOpen uses the default list when creating a new game.

Functions

Link copied to clipboard
fun findWaitingGameSpace(): GameSpace?

Searches all open GameSpaces for one matching this game type that is still in the WAITING state.

Link copied to clipboard
fun joinOrOpen(server: MinecraftServer, player: ServerPlayer, arenaKey: String): CompletableFuture<GameSpace>

Joins an existing WAITING GameSpace for this game type, or opens a new one if none exists.

Link copied to clipboard
fun open(server: MinecraftServer, opener: ServerPlayer?, arenaKey: String): CompletableFuture<GameSpace>

Opens a brand-new GameSpace and attempts to join opener into it.