Regalia Slots API (0.0.0-beta.8)
Curse Maven Snippet
What's new
v0.0.0-beta.8 - Curios capability double-registration crash
Eighth beta of Regalia Slots API for Minecraft 1.21.1 / NeoForge 21.1.249 (Java 21).
Fixed
- Crash when a mod resolved the real
CuriosCapabilityclass (Create's goggles overlay, and any mod referencingtop.theillusivec4.curios.api.CuriosCapability):IllegalStateException: Attempted to register capability curios:inventory with existing type interface com.skd.regaliaslotsapi.api.type.capability.ICuriosItemHandler != interface top.theillusivec4.curios.api.type.capability.ICuriosItemHandler. The compat entrypoint declared its owncurios:inventory/curios:itemcapability objects typed against Regalia's interfaces, which collided with the identically-named ones in the copied Curios API the moment a third-party mod class-loaded that class. Only earlier crashes in the render path had been hiding it.
Technical
CuriosCompatModno longer creates its ownEntityCapability/ItemCapabilityfor thecuriosids. It now registers its providers against the verbatimCuriosCapability.INVENTORY/ITEM_HANDLER/ITEM, so third-party mods resolve the exact same capability instances they expect.- Providers wrap Regalia's implementations in the beta.7 shims (
ShimCuriosItemHandler,ShimCurio) so the returned objects implement thetop.theillusivec4.curios.*interfaces; theITEM_HANDLERprovider returns the entity's equipped-curiosIItemHandlerview.
Notes
Regalia Slots API is a library. It adds no content on its own — install it only as a dependency of another mod that requires it, on both client and server. Incompatible with the real Curios mod (shared curios mod id); install one or the other. LGPL-3.0-or-later; the full licence text ships in the jar.
JAR: regalia_slots_api-1.21.1-neoforge-21.1.249-0.0.0-beta.8.jar
Tag: 1.21.1-neoforge-0.0.0-beta.8
This mod has no additional files

