MinecraftPlatformCommands

Owner-thread dispatcher that validates a complete mixed display list before partial native output.

The containing presentation owns this bounded renderer list and discards it after submission. It stores no command history and preserves the existing portable/native order and presenter-owned clips. Exactly one renderer must accept each platform payload; unsupported or ambiguous payloads are rejected explicitly.

Parameters

renderers

adapter-owned handlers, copied defensively without transferring ownership.

Type Parameters

T

native drawing context borrowed by each dispatch.

Constructors

Link copied to clipboard
constructor(renderers: List<MinecraftPlatformCommandRenderer<T>>)

Functions

Link copied to clipboard
fun render(target: T, command: DrawCommand.Platform)

Dispatches one validated command at its unchanged display-list position.

Link copied to clipboard
fun validate(commands: List<DrawCommand>)

Validates every platform command without drawing or retaining the supplied list.