Package-level declarations

Types

Link copied to clipboard

Attempts independent render-thread GUI cleanup without retaining callbacks, handles or queues after return. Every cleanup is attempted even when an earlier one fails, without waiting for GPU work.

Link copied to clipboard

Orders borrowed owner-thread Canvas shutdown before the platform destroys its rendering context. Screen failures do not skip queue discard or vanilla shutdown; device release requires a successful discard. An original vanilla failure remains primary over independent cleanup failures.

Link copied to clipboard
object FabricHud

Registers Strata overlays through the selected official Fabric HUD API.

Link copied to clipboard

Version-owned capability for dropping queued GUI references without submitting native draws. Native GUI owners implement this through typed Mixins; calls belong to the render thread and retain no resources after return.

Link copied to clipboard

Connects native GUI consumption and device lifetime on the client/render thread without owning screen or resource references. A native operation's original failure remains primary when independent Canvas cleanup also fails.

Link copied to clipboard

Fabric client screen backed by one common Minecraft UI host on Minecraft 1.21.8 and compatible primitive-input releases.

Link copied to clipboard

Native custom-payload endpoint shared by all supported Fabric clients. Client extensions register their factories before the first play connection captures registry. Network callbacks enqueue only owned bytes; all session and rendering work runs on the client tick thread.

Link copied to clipboard

Registers the authenticated Fabric buffer transport and detaches received fragments before native buffer release.

Link copied to clipboard

Registers Fabric's buffer-based client receiver and sends detached Strata fragments on the current play connection.

Link copied to clipboard

Client-thread input bridge using current native mappings and vanilla gameplay handlers.

Link copied to clipboard

Client-thread ownership of native wrappers; every entry has one common retained host for its entire lifetime.

Link copied to clipboard

Borrows an offscreen OpenGL target for one render-thread Canvas callback.

Link copied to clipboard

Owns custom native drawing resources for one attachment resource generation.

Link copied to clipboard

Borrows one ordinary OpenGL 2D RGBA8 straight-alpha color texture until capture completion.

Link copied to clipboard

Identifies which logical image edge contains native texel row zero.

Link copied to clipboard

Supplies an externally owned native color image for an actual Canvas presentation.

Link copied to clipboard
object Strata

Server-owned UI entry point for dedicated and integrated Fabric servers. Operations require the server thread after Fabric emits SERVER_STARTED; async callers must schedule there first. Create mutable state inside open's factory and keep it on that server's execution owner.

Link copied to clipboard
class StrataFabric : ModInitializer

Registers networking and logical-server lifecycle on either physical environment.

Link copied to clipboard
class StrataFabricClient : ClientModInitializer

Fabric client entrypoint that installs the process-wide Strata screen presenter.

Link copied to clipboard
sealed interface StrataUiEvent

Committed lifecycle notifications emitted inside the service's execution owner. Notifications run on the server thread; listener failures never undo committed state. UI identity is scoped to the service and connection. Capability and presentation values are snapshots; player, owner Mod, and session references retain their native ownership.

Functions

Link copied to clipboard

Describes an externally owned GPU image provider without acquiring a texture or allocating native storage.

fun canvasSource(depth: Boolean = false, factory: () -> MinecraftCanvasRenderer): CanvasSource

Describes a custom offscreen renderer without invoking its factory or allocating native storage.

Link copied to clipboard
fun createMinecraftScreen(definition: ScreenDefinition, profile: MinecraftUiProfile, parent: Screen? = currentMinecraftScreen()): FabricMinecraftScreen

Compatibility factory sharing the common UI host path.

fun createMinecraftScreen(definition: UiDefinition, profile: MinecraftUiProfile, parent: Screen? = currentMinecraftScreen(), controls: RuntimeUiController? = null, eventSession: UiSession? = controls): FabricMinecraftScreen

Creates a Fabric client screen by transferring definition into one independent common host.

Link copied to clipboard

Extracts the complete Minecraft UI profile from the active resource manager.

Link copied to clipboard

Snapshots the current client's selected 64 by 64 player skin for portable PlayerHead rendering.

Link copied to clipboard

Loads one immutable UI image from the active resource manager.