Modifier
Immutable ordered active modifier descriptions.
The first description is the outermost node and the last description is nearest the component. Composition is value based when its descriptions obey the immutable modifier contract. The runtime reconciles modifier positions by referential ModifierNodeType token.
Parameters
the immutable ordered descriptions owned by this value.
Functions
Captures the typed action handlers declared directly on this modifier chain.
Paints a color across the modifier's complete local bounds before its content. The new behavior is appended inside the existing modifier chain, so existing outer paint behavior remains earlier.
Sizes the modified component to a Minecraft 26.2 generic chest panel and paints its background before content.
Returns the read-only description snapshot to the retained runtime.
Fills a bounded parent height while preserving an unbounded height. The new behavior is appended inside the existing modifier chain and leaves the width policy unchanged.
Fills every bounded parent axis while preserving unbounded axes. The new behavior is appended inside the existing modifier chain.
Fills a bounded parent width while preserving an unbounded width. The new behavior is appended inside the existing modifier chain and leaves the height policy unchanged.
Constrains the height to an independently clamped inclusive range. A requested range disjoint from its parent range is pinned to the nearest parent boundary. Int.MAX_VALUE remains an unbounded maximum, and the new behavior is appended inside the existing modifier chain.
Paints arbitrary immutable image pixels behind the modified component's content.
Paints arbitrary immutable image pixels as a Minecraft-compatible nine-slice background behind content.
Makes the logical component the initial focus target when layout has no retained focus owner.
Paints the selected Minecraft menu texture behind the modified component's content.
Runs one action for a primary pointer press or a focused Enter or Space press and consumes that event.
Keeps activation attached while its enabled value follows a frame-committed source. Pass the same source to the component's enabled argument when appearance and input must agree. Unlike the Boolean overload, a false source retains the action so it can become enabled without rebuilding its parent. Notifications never dispatch actions; pointer and keyboard input use the last committed value on the owner thread. The caller owns the source. Replacement, disposal, failure, and close release the runtime observation and action.
Conditionally installs the shared pointer and keyboard activation behavior from onActivate.
Handles pointer events and captures the button whose press this handler consumes.
Captures button locally when its press reaches this modifier and sends typed gesture notifications to its owner. Matching presses, movement, scrolling, and matching-button drag/release events are consumed immediately. Other buttons continue ordinary dispatch. Captured coordinates may lie outside the modifier bounds. Changing the button leaves an active gesture attached to its original subscription until release or cancellation. A remote subscription change retires its endpoints, so that old gesture cannot invoke replacement handlers. onCancel runs on the owner thread for interrupted gestures; it is not called for an ordinary release.
Adds a focused committed-character callback.
Subscribes to typed text notifications while deciding propagation immediately on the client. action runs on the screen owner thread, on Paper for a remote screen, and returns no dispatch decision. IME state remains local; only the requested event variant is sent to the server.
Runs action for every pointer drag that hits this modifier without consuming the event.
Handles every pointer drag that hits this modifier's laid-out bounds.
Subscribes to typed pointer notifications within the modifier's hit region, including local coordinates. propagation is applied immediately; action runs on the screen owner thread, on the hosting server or proxy for remote screens. Only the subscribed event variant and optional button are delivered or transmitted.
Adds a callback for distinct retained focus transitions and makes the logical component focusable.
Adds a focused callback for every key press and release.
Subscribes to typed keyboard notifications with a fixed immediate dispatch result. Only events matching filter invoke action or cross a remote connection; other events continue propagation. The handler runs on the screen owner thread, on the hosting server or proxy when the screen is remote. propagation is decided locally without waiting for that handler; dynamic result callbacks use the other overload.
Adds a focused key-press callback.
Subscribes to typed keyboard notifications with a fixed immediate dispatch result. Only events matching filter invoke action or cross a remote connection; other events continue propagation. The handler runs on the screen owner thread, on the hosting server or proxy when the screen is remote. propagation is decided locally without waiting for that handler; dynamic result callbacks use the other overload.
Adds a focused key-release callback.
Subscribes to typed keyboard notifications with a fixed immediate dispatch result. Only events matching filter invoke action or cross a remote connection; other events continue propagation. The handler runs on the screen owner thread, on the hosting server or proxy when the screen is remote. propagation is decided locally without waiting for that handler; dynamic result callbacks use the other overload.
Handles and consumes demand for rows before a virtual list's loaded window.
Runs action for every pointer move that hits this modifier without consuming the event.
Handles every pointer move that hits this modifier's laid-out bounds.
Subscribes to typed pointer notifications within the modifier's hit region, including local coordinates. propagation is applied immediately; action runs on the screen owner thread, on the hosting server or proxy for remote screens. Only the subscribed event variant and optional button are delivered or transmitted.
Handles every typed pointer event that hits this modifier's laid-out bounds.
Subscribes to typed pointer notifications within the modifier's hit region, including local coordinates. propagation is applied immediately; action runs on the screen owner thread, on the hosting server or proxy for remote screens. Only the subscribed event variant and optional button are delivered or transmitted.
Adds a focused input-method preedit callback.
Subscribes to typed text notifications while deciding propagation immediately on the client. action runs on the screen owner thread, on Paper for a remote screen, and returns no dispatch decision. IME state remains local; only the requested event variant is sent to the server.
Runs action for every primary pointer press that hits this modifier and consumes the event. Other button presses remain ignored so lower or earlier handlers can process them.
Handles every pointer press that hits this modifier's laid-out bounds.
Subscribes to typed pointer notifications within the modifier's hit region, including local coordinates. propagation is applied immediately; action runs on the screen owner thread, on the hosting server or proxy for remote screens. Only the subscribed event variant and optional button are delivered or transmitted.
Runs action for every pointer release that hits this modifier and consumes the event.
Handles every pointer release that hits this modifier's laid-out bounds.
Subscribes to typed pointer notifications within the modifier's hit region, including local coordinates. propagation is applied immediately; action runs on the screen owner thread, on the hosting server or proxy for remote screens. Only the subscribed event variant and optional button are delivered or transmitted.
Runs action for every pointer scroll event that hits this modifier and consumes the event.
Handles every pointer scroll event that hits this modifier's laid-out bounds.
Subscribes to typed pointer notifications within the modifier's hit region, including local coordinates. propagation is applied immediately; action runs on the screen owner thread, on the hosting server or proxy for remote screens. Only the subscribed event variant and optional button are delivered or transmitted.
Adds a focused callback for both committed characters and input-method preedit updates.
Subscribes to typed text notifications while deciding propagation immediately on the client. action runs on the screen owner thread, on Paper for a remote screen, and returns no dispatch decision. IME state remains local; only the requested event variant is sent to the server.
Handles and consumes demand for rows after a virtual list's loaded window.
Adds checked distances around the virtual child. The new behavior is appended inside the existing modifier chain. Measurement reports an ArithmeticException if a measured child extent plus the checked inset total overflows.
Adds one distance around every side of the virtual child. The new behavior is appended inside the existing modifier chain.
Adds equal horizontal and equal vertical distances around the virtual child. The new behavior is appended inside the existing modifier chain.
Adds independently specified distances around the virtual child. Unspecified sides default to zero, and the new behavior is appended inside the existing modifier chain.
Adds captured pointer panning and pointer-anchored scroll zooming.
Constrains both axes to independently clamped inclusive ranges. A requested range disjoint from its parent range is pinned to the nearest parent boundary. Int.MAX_VALUE remains an unbounded maximum, and the new behavior is appended inside the existing modifier chain.
Constrains the width to an independently clamped inclusive range. A requested range disjoint from its parent range is pinned to the nearest parent boundary. Int.MAX_VALUE remains an unbounded maximum, and the new behavior is appended inside the existing modifier chain.