ChimericLib

Shared library for chimericdream's mods
Back to Files

[Fabric] 26.2-6.6.0

File namechimericlib-fabric-26.2-6.6.0.jar
Uploaded
Oct 3, 2026
Downloads
485
Size
203.5 KB
Mod Loaders
Fabric
File ID
9044124
Type
R
Release
Supported game versions
  • 26.2

Curse Maven Snippet

Fabric

modImplementation "curse.maven:chimericlib-1107232:9044124"

Learn more about Curse Maven

What's new

26.2 - 6.6.0

New Features

  • Added config/YaclConfig and config/YaclConfigScreens — a shared YACL config wrapper that replaces the hand-written ConfigClassHandler boilerplate every mod previously copied. A mod builds its config with YaclConfig.builder(FooConfig.class, MOD_ID).screen(...).onLoad(...).build() and calls .init() once from its common init(); instance()/defaults()/load()/save() cover the rest. Config-screen registration is deferred to YaclConfigScreens, a registry keyed by mod id, which the platform layers drain at a point guaranteed to run after every mod's own init: on Fabric, chimeric-lib's new modmenu entrypoint (fabric/config/YaclModMenuIntegration) implements ModMenuApi#getProvidedConfigScreenFactories() for every registered config; on NeoForge, neoforge/config/YaclConfigScreensNeoForge's FMLClientSetupEvent handler registers an IConfigScreenFactory extension point on each consumer mod's ModContainer. This is opt-in — chimeric-lib still does not hard-depend on Mod Menu or YACL; a mod that never calls YaclConfig.builder needs neither present.
  • Added dispenser/DispenserBehaviors and dispenser/BlockTargetDispenseBehavior — a helper for "dispenser uses this item on the block in front of it" that layers over an item's existing dispenser behavior instead of replacing it. DispenserBehaviors.wrap(item, handler) captures the item's current DISPENSER_REGISTRY entry (or vanilla's per-stack default, via a new DispenserBlockAccessor invoker mixin, when it has none) and registers a wrapper whose handler returns PASS (run the previous behavior), SUCCESS (dispense sound) or FAIL (failure click, stack untouched). Also adds DispenserBehaviors.damageWithoutPlayer for tools used by a dispenser. Call wrap from Fabric's onInitialize or NeoForge's FMLCommonSetupEvent inside enqueueWork.

This mod has no additional files