ModContextFactory

class ModContextFactory(modsDirectory: Path, eventBus: EventBus, commandRegistry: CommandRegistry, scheduler: Scheduler, messaging: Messaging, players: PlayerManager, backends: BackendRegistry, permissionChecker: PermissionChecker, serviceRegistry: ServiceRegistry)

Creates mod contexts with shared runtime services.

Constructors

Link copied to clipboard
constructor(modsDirectory: Path, eventBus: EventBus, commandRegistry: CommandRegistry, scheduler: Scheduler, messaging: Messaging, players: PlayerManager, backends: BackendRegistry, permissionChecker: PermissionChecker, serviceRegistry: ServiceRegistry)

Functions

Link copied to clipboard
fun create(modInfo: ModInfo): ModContext