Skip to content

API Interface UIServiceDef

github-actions[bot] edited this page Dec 2, 2026 · 1 revision

Interface: UIServiceDef

Defined in: src/plugins/ui/runtime/uiServices.ts:41

A registered service: what defineUIService returns.

Extends

Properties

component

readonly component: string;

Defined in: src/plugins/ui/runtime/uiServices.ts:43

The component file it serves, as written.


perPlayer?

readonly perPlayer?: boolean;

Defined in: src/plugins/ui/runtime/uiServices.ts:36

One instance per view player (split screen) instead of one per World.

Inherited from

UIServiceOptions.perPlayer


worlds?

readonly worlds?: readonly WorldTag[];

Defined in: src/plugins/ui/runtime/uiServices.ts:34

The Worlds it runs in, by tag, as a system's worlds (default: every World).

Inherited from

UIServiceOptions.worlds

Methods

create()

create(context): UIServiceInstance;

Defined in: src/plugins/ui/runtime/uiServices.ts:37

Parameters

context

UIServiceContext

Returns

UIServiceInstance

Inherited from

UIServiceOptions.create

Clone this wiki locally