[NeoForge] 26.2-6.6.0
Curse Maven Snippet
What's new
26.2 - 6.6.0
New Features
- Added
config/YaclConfigandconfig/YaclConfigScreens— a shared YACL config wrapper that replaces the hand-writtenConfigClassHandlerboilerplate every mod previously copied. A mod builds its config withYaclConfig.builder(FooConfig.class, MOD_ID).screen(...).onLoad(...).build()and calls.init()once from its commoninit();instance()/defaults()/load()/save()cover the rest. Config-screen registration is deferred toYaclConfigScreens, 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 newmodmenuentrypoint (fabric/config/YaclModMenuIntegration) implementsModMenuApi#getProvidedConfigScreenFactories()for every registered config; on NeoForge,neoforge/config/YaclConfigScreensNeoForge'sFMLClientSetupEventhandler registers anIConfigScreenFactoryextension point on each consumer mod'sModContainer. This is opt-in — chimeric-lib still does not hard-depend on Mod Menu or YACL; a mod that never callsYaclConfig.builderneeds neither present. - Added
dispenser/DispenserBehaviorsanddispenser/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 currentDISPENSER_REGISTRYentry (or vanilla's per-stack default, via a newDispenserBlockAccessorinvoker mixin, when it has none) and registers a wrapper whose handler returnsPASS(run the previous behavior),SUCCESS(dispense sound) orFAIL(failure click, stack untouched). Also addsDispenserBehaviors.damageWithoutPlayerfor tools used by a dispenser. Callwrapfrom Fabric'sonInitializeor NeoForge'sFMLCommonSetupEventinsideenqueueWork.
This mod has no additional files