MinecraftInventorySlotBinding

Owner-thread binding between one retained Slot and a platform-managed Minecraft inventory slot.

The binding snapshots platform item rendering, delegates pointer transactions, and notifies its one retained consumer when synchronized content changes. Implementations retain no observer after the returned subscription closes and reject use after this binding or its owning MinecraftUiPlatform closes.

Functions

Link copied to clipboard
abstract override fun close()

Releases this retained-node binding and removes it from platform refresh and input bookkeeping.

Link copied to clipboard

Delegates one hit-tested pointer event to Minecraft's authoritative container-input path.

Link copied to clipboard

Returns the current immutable item draw payload, or null for an empty slot.

Link copied to clipboard
abstract fun observe(observer: () -> Unit): AutoCloseable

Registers the sole retained-node observer for synchronized content changes.