Ever Game Launcher
Abstract base for game launchers that deduplicates the boilerplate shared across all four minigame launchers (resolve game type, kick from current game, build config, open, join).
Subclasses only need to provide config construction and display metadata.
Parameters
C
the game-specific config type (e.g. HelloWorldConfig)
Inheritors
Functions
Link copied to clipboard
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.