2.0.0+26.2-fabric
Curse Maven Snippet
What's new
Added
Multi-Container Configuration Architecture (
ConfigContainer):Introduced
ConfigContainerunderConfigManager, enabling mods to organize large schemas across an implicitmaincontainer alongside any number of named sub-configs declared viaConfigManager.define(id).asSubConfig().Standardized scope-split disk paths under
config/<modId>/<containerId>-<scope>.tomlandworld/serverconfig/<modId>/<containerId>-level.toml, with automatic one-time migration from legacy 1.x<modId>-<scope>.tomlfiles.Updated
ConfigDescription,/config_overhauled dump,/config_overhauled langgen, and synchronization payloads to address properties using full 5-part(modId, configId, category, groupPath, property)coordinates.Added automatic cross-loader config screen wiring across Fabric (Mod Menu), Forge, and NeoForge so every registered
ConfigManagerexposes its landing page and config screens automatically without boilerplate.
Recursive Sub-Groups:
Added arbitrary-depth nested sub-groups via
Group.define(id).asSubGroup(), exposingparentGroup(),depth(), and dottedgroupPath()addressing.Nested sub-groups serialize cleanly to nested TOML tables (
[category.group.subgroup]), follow matching dotted translation keys, render framed by dotted divider lines, support collapsing/expanding individually or globally, and integrate with search queries and deep links.Added the
prefix_sub_groupsclient setting to toggle whether sub-group headers display their parent title prefix (e.g.,Parent: Child).
Multi-Config Landing Page (
DefaultConfigLandingScreen):Added a dedicated vanilla-styled landing screen serving as the entry point for mods with multiple config containers or manifests, featuring a centered header panel with a square (1:1) mod icon (
ConfigManager.setModIcon(Identifier), falling back to platform metadata icons and omitting non-square banners with a log warning), display name, version, and optional interactive introduction (ConfigManager.withIntroduction()).Added a left-hand Configs scroll panel listing collapsible config containers and nested categories with item icons (
withIcon(ItemLike)+withFallbackTexture(Identifier)viaIIconFallbackStep), transfer-arrow hover overlays, right-click collapsing, double-click opening (double_click_open_config), and a bottom[+/-]collapse-all / search / clear bar.Added deep-link navigation (
ConfigNavigationTarget) that switches to the target tab, automatically expands collapsed ancestor groups, smooth-scrolls to the target entry, and plays an arrival highlight pulse.
Interactive Manifests & Live In-Game Dev Editor:
Added
ManifestParserandManifestTextWidgetsupporting localized rich-text documentation (withManifest()) with inline styling (<b>,<i>,<u>) and clickable deep links (<config:.../>,<category:.../>,<group:.../>,<property:.../>) with full-link hover highlights.Added
ManifestTreeGeneratorto automatically generate a clickable Unicode box-drawing hierarchy overview whenever a config container or category has no explicit manifest.Added
GuidedManifestEditorandManifestMentionPopupin development environments, providing live WYSIWYG Guided editing (with@-mention link completion and formatting toggles), Raw editing, and timestamped JSON export toconfig/<modId>/manifest/.
F-Bounded Fluent Property Builder & Composed
PropertySpec:Introduced compile-time scope branching (
Group.define(id).asProperty()->IScopeStep->IClientTypeStep/IServerTypeStep/ITypeStep) and F-Bounded specialized builders:IBooleanBuilder,INumericBuilder,IColorBuilder,IStringBuilder,IEnumBuilder,IListBuilder, andIRegistryBuilder.Added composable built-in validation modifiers across specialized builders:
IStringBuilder:maxLength(int)andpattern(String / Pattern[, String]).IListBuilder:minSize(int),maxSize(int),sizeRange(int, int), andunique().INumericBuilder:min,max,range,step, and the forward-compatibleasSlider()hint.IOptionalStep: chainedwithValidator(Predicate[, String]), multi-line appendingwithComment(String), and persistentonChanged(Property.Listener | Consumer<T> | BiConsumer<T, T>)lifecycle callbacks (also available post-registration viaProperty.addListener(...)and triggered when diskload()changes the active runtime value).
Added an ergonomic
asEnum(E)overload backed by a built-in case-insensitive enum codec supporting bothStringRepresentableserialized names andEnum.name().Added
withLabelStyle(Style / UnaryOperator<Style> / ChatFormatting...)andConfigTextResolver, allowing labels to be styled fluently while automatically interpolating missing localization keys fromsnake_caseIDs toTitle Casedisplay labels.
Dynamic Dependent Bounds & Conflict Resolution:
Implemented
java.util.function.Supplier<T>on bothProperty<T>andAbstractPropertyListener<T>and made constructors on all 12 concrete typed listener subclassespublic, so static properties and dynamic property listeners can be composed directly without wrapper subclasses and passed straight into dynamic bounds (e.g.,.range(LOWER_CAP, UPPER_CAP)) and standard supplier APIs.Added supplier-backed dynamic bounds on
INumericBuilder(min(Supplier),max(Supplier),range(Supplier, Supplier)) that evaluate live against staged draft values during editing sessions.Added
BoundConflictPolicy(PREFER_LOWER,PREFER_UPPER,PREFER_STATIC) to guaranteelowerBound() <= upperBound()when dynamic bounds invert at runtime, emitting a one-time warning and displaying amber conflict indicators in inline tooltips and numeric modals.
Pure-API Custom Property & Widget Extensibility:
Opened the custom property extension pipeline via
PropertyType,PropertySpec,PropertyBuildContext,AbstractProperty,AbstractPropertyBuilder,Group.ITypeStep.as(PropertyType, T), and typedDynamicPropertyContext<T>factories onDynamicPropertyTypeRegistry, complete with recursive NightConfig <->JavaOpsTOML bridging for structuredRecordCodecBuilder/map codecs.Promoted
AbstractOptionEntry(with session-scopedgetEffectiveValue()/setValueAndRefresh(T)helpers),AbstractTextOptionEntry,AbstractButtonOptionEntry,AbstractListButtonEntry,AbstractConfigPopup,RenderableIcon,SafeIconRenderer, andConfigTextResolverinto the publicapi.client.guipackages so external mods can build first-class custom property editors with zeroimplimports.Upgraded
WidgetRegistryto a 3-tier collision-safe resolution hierarchy (Screen -> Mod (forMod(modId)) -> Global (registerGlobal(...))) withPropertyTypetoken precedence overClass<?>and locked built-in protection on the global tier so library mods' custom widgets are automatically inherited by dependent mods, and added a warning when a legacyConfigManager.setScreenFactory(...)overrides a manager's landing page.
Compile-Time Property Mirroring & External Default Overrides (
MirrorableProperty):Added explicit compile-time opt-in mirroring via
Group.IOptionalStep.allowMirroring()->Group.IMirrorableStep.register(), returning aMirrorableProperty<T>handle so properties deny cross-mod mirroring and default overrides unless explicitly enabled by their owning mod.Added
Group.mirrorProperty(MirrorableProperty<T>),Group.mirrorProperty(MirrorableProperty<T>, T), andMirrorableProperty.overrideDefault(String, T)so dependent mods can display and override defaults for opted-in library properties inside their own config screens while keeping the owning mod'sConfigContaineras the single source of truth for TOML persistence, lang generation, and network sync.Preserves pre-existing saved values on disk while applying overridden defaults to fresh/unsaved configs (including late startup registration), updates GUI reset targets, TOML comments, reset tooltips (
Default overridden by ...), and row tooltips (Mirrored from ...), and inherits the owning mod'sWidgetRegistry.forMod(...)registrations for mirrored entries.
Client-Side Key Binding Property (
KeyBind) & Capture Modal:Added
Group.IClientTypeStep.asKeyBind(KeyBind)->Group.IKeyBindBuilderfor client-scoped editor/tool shortcuts with dedicated-server-safe canonical serialization (KeyBind,KeyCodes,KeyModifier,KeyCategory).Supports single keyboard keys, mouse buttons, modifier-only bindings distinguishing Left, Right, and virtual Any-side variants (e.g.,
KeyCodes.LEFT_SHIFTvs.KeyCodes.ANY_SHIFT), and multi-modifier chords (e.g.,Ctrl + Shift + Z), with opt-out exclusions (excludeCategory,excludeKey,disallowModifiers/singleKeyOnly,disallowModifierOnly,disallowMouse,requireBound).Added
KeyBindEntry(opens the modal directly on click with no pencil button),KeyBindPopup(live key/mouse/chord capture, manual modifier toggle chips, Left/Right/Any side cycling, unbinding, constraint validation, and non-blocking same-ConfigManagerconflict warnings), andKeyBindHelper(matches,matchesMouse,isDown,getDisplayName).
Transactional Editing Sessions (
ConfigEditSession) & Atomic Batch Sync:Introduced
ConfigEditSessionto stage all GUI edits in memory across tabs until explicitly committed via Save or discarded via Revert, with#modifiedsearch filter integration and draft-aware dependent bound previews.Added
ConfigBatchUpdateRequestPacketso server-scoped (GLOBALandLEVEL) edits commit atomically in a single network payload with per-entry permission and validation checks.Added
UnsavedChangesPopup(Save & Exit,Discard & Exit,Cancel) when leaving a config screen via Done orEscapewith uncommitted staged changes.
Interactive 5-Lesson Curriculum & Pure-API Reference Package:
Added the
curriculumsub-config (CurriculumConfig), fully documented with Javadoc and first-occurrence inline builder comments, guiding players and mod developers through 5 interactive lessons covering primitives, dependent bounds &BoundConflictPolicy, custom validators, colors, lists, registries, custom types, recursive sub-groups, scopes, search filters, label styling/interpolation, custom translation keys, and reactiveonChangedlisteners.Added the standalone
johnsmith.configoverhauled.curriculumreference package (IntRange,IntRangeProperty,IntRangeEntry,IntRangePopup,CurriculumClient) implementing a complete custom[min..max]property and modal editor strictly against the public API.
Reworked
API Package Organization (
api.core&api.core.property):- Organized the former root
johnsmith.configoverhauled.apitypes intojohnsmith.configoverhauled.api.core(ConfigManager,ConfigContainer,Category,Group,ConfigEditSession,IIconFallbackStep) andjohnsmith.configoverhauled.api.core.property(Property,MirrorableProperty,AbstractProperty,PropertySpec,PropertyType,PropertyBuildContext,AbstractPropertyBuilder).
- Organized the former root
Config Screen Controls, Layout & Footer:
Replaced text action buttons on property rows with square icon buttons for Edit (pencil), Revert (staged change), and Reset (default).
Redesigned the config screen footer to Reset, Revert, Save, and Done: Reset, Revert, and Save scope to the active tab and search filter by default with tooltips previewing affected properties, and switch to italicized Reset All / Revert All / Save All across all tabs while holding Shift.
Aligned
DefaultConfigScreenandConfigListwith vanilla full-width darkened scroll-list styling andCreate New World-style tabs with inset active tab shading.
Registry & Registry List Selection Screens:
Redesigned
RegistryListSelectionScreenandRegistrySelectionScreento match vanilla Resource Pack column widths with centered Available / Selected list headers and the property's title and description rendered in the screen header.Unified hovered and selected entry outline heights (
36pxboxes inside37pxrows with1pxseparation), centered title/subtitle typography with marquee scrolling, restricted tooltips to overflowing marquee text only, and fixed an issue where closing a registry sub-screen left the parent config list blank until switching tabs.
Accessibility, Narration & Focus Stability:
Implemented comprehensive
NarratableEntrysupport and full keyboard (Tab,Shift+Tab, arrow keys,Enter,Space) navigation across the landing page, manifest links, guided manifest editor, color swatch buttons, search suggestion popups, registry pickers, and modal dialogs.Refined
AbstractConfigScreenfocus handling so keyboard-opened popups capture and restore the exactContainerEventHandlerfocus chain upon closing, while mouse-driven popup opens/closes and empty-space clicks clear lingering button focus highlights.
Legacy 1.x API Deprecations &
ConfigCleanup:Deprecated legacy 1.x builder entry points on
Group.IConfigStep(calling scope methods without.asProperty()) and legacy 3-argument bounded numeric overloads (asInteger(def, min, max),asDouble(def, min, max),asFloat(def, min, max),asLong(def, min, max)) in favor of.range(min, max).Streamlined
Configto contain strictly Config Overhauled's own client preferences, moving and expanding all showcase properties intoCurriculumConfig.
Removed
Removed
ConfigUpdateRequestPacket(superseded byConfigBatchUpdateRequestPacketfor atomic multi-property commits).Removed the legacy demo/showcase properties from
Config(superseded by thecurriculumsub-config inCurriculumConfig).
All Relations
- All Relations
- Embedded Library
- Optional Dependency
- Required Dependency
- Tool
- Incompatible
- Include
This mod has no related projects