x4ui-r1.0b7.jar
Curse Maven Snippet
What's new
Screen Architecture & Side Panels (ScreenHost & GuiBaseContainer)
- New
ScreenHost: Extracts and unifies the shared controller behindGuiBaseScreenandGuiBaseContainer(component tree, overlays, RPCs, toasts, input routing, and lifecycle). - Full
GuiBaseContainerparity:- Native support for
attachSidePanel(DockSide, ...)(requestSidePanelLayout(),layoutSidePanelsAndSync()),createCenteredWindow(maxWidth, maxHeight),hasClickedOutside(...)(clean JEI and side-panel hit-testing),removeComponent(...), andsetAnimateOpen(boolean).
- Native support for
- New fluent
GuiBuilder: Rewritten non-generic declarative builder (replacing the oldGuiBuilder<T>) with modern helpers for windows, panels, buttons, and reactive bindings.
Layout Engine, Geometry & New Containers
- Constraints & Flexbox in
GuiComponent+FlexLayout:GuiComponentaddsminWidth,maxWidth,minHeight,maxHeight,baseWidth/baseHeight,flexGrow,flexShrink, and fluent setters (withMinWidth,withMaxWidth,withMinSize,withMaxSize,withFlexGrow,withFlexShrink,withFlex), plusadd(child, Consumer<T>),invalidateAbs(),isClippedBy(IGraphics), andonBoundsChanged().FlexLayoutimplements water-filling distribution forflexGrow/flexShrinkrespectingmin/maxconstraints and fixing bounds and padding calculations.
CornerRadii,BorderSides&DockSideprimitives:IGraphicsandGLGraphicsadd per-corner rounding (CornerRadii) and selective border rendering (BorderSides).GuiPanelsupportsCornerRadii,BorderSides,suppressChrome, and themed cards.
GuiGridPanel: New grid container withautoColumnsfor responsive card or slot grids.GuiUnionPanel: New container that visually merges docked panels (DockSide) with continuous corners and borders.
Components, Rendering & Themes
GuiDropdown: Full keyboard navigation (onKeyPresswith arrow keys, Enter, and Escape),highlightedIndex, staticGuiDropdown.of(State<T>, List<T>), and hit-testing/overlay fixes.- Widget & Render Fixes: Clipping, focus, state, and rendering fixes across
GuiAnimator,GuiToastManager,GuiOverlayManager,GuiVideo,GuiAudio,GuiVirtualList,GuiModelRender,GuiMarkdown,GuiTextInput,GuiButton,GuiImage,GuiLabel,GuiScrollPanel,GuiSlot,GuiToggle,DefaultTheme, and typed sliders (GuiSlider*).
Security, Networking, Media & Runtime
- Security & Network Hardening (
SecurityUtils,ActionGuard,Packet*,UIChannels):SecurityUtilshardens SSRF checks (blocking private, loopback, link-local, and multicast IPv4/IPv6 ranges), unsafe redirects, and path-traversal attempts.ActionGuard,PacketGuiAction,PacketGuiRpc,PacketHandshake, andStateContainerListenerenforce stricter payload, bounds, and session checks.UIChannels,UINetwork,ClientSessionTracker,ClientProxy, andCommonProxystreamline channel management and session cleanup.
- Reactive State & Media Pipeline:
State<T>isolates per-listener exceptions duringset(T)delivery, andUIStateBusenforces scope (SCREEN/SESSION/GLOBAL) and type safety.MediaPipeline,OpenALAudioSink,DirectMemoryVideoDecoder,FFmpegAudioDecoder, andJCodecVideoDecoderfix native buffer/process leaks, A/V sync edge cases, and idempotent cleanup.PlatformBridge(Java 8 & Java 21) improves native resource cleanup and CleanroomMC compatibility.
Breaking Changes & Beta Cleanup
- Dead/Legacy Code Removal: removed
IMediaService,MediaService,IMediaAsset,AssetCallback,RemoteResourceManager,DownloadManager,FFmpegProcessDecoder,IGuiActionSender,GuiCard,GuiTooltip,GuiBaseScreen.drawTitle()/drawBackground(), legacy static helpers inGuiComponent, and the oldGuiBuilder<T>. - Migrated
cleanCache(modId, daysOld)toMediaPipeline.getInstance().cleanCache(modId, daysOld). - Simplified
GuiPanel.spacer()to operate directly viaflexGrow = 1.0f. - Recommended Maven Distribution: Modrinth Maven (
https://api.modrinth.com/mavenwithrfg.deobf("maven.modrinth:x4ui:r1.0b7")) is now the official recommended repository for consumer mods.
All Relations
- All Relations
- Embedded Library
- Optional Dependency
- Required Dependency
- Tool
- Incompatible
- Include
This mod has no related projects