File Details
[Fabric 1.21] v2.1
- R
- Jun 6, 2025
- 109.82 KB
- 28
- 1.21.1+1
- Fabric
File Name
xunlib-fabric-1.21-2.1.jar
Supported Versions
- 1.21.1
- 1.21
Curse Maven Snippet
Xunlib v2.1 Changelog
Registration System Overhaul
- Renamed
Registrar→Register: Simplified naming for core registration API. - New Registry Paradigm:
- Replaced lazy registry references with strongly-typed holders:
RegistryHolder: Base for all registry objectsRegistryItem: Specialized holder for itemsRegistryBlock: Specialized holder for blocks- Benefits: Type safety, explicit lifecycle control, and loader-agnostic initialization.
Breaking Changes
- Forge Support Removed:
- Discontinued due to API incompatibilities with the finite registration system.
- Still Supported: Fabric and NeoForge
- Deprecated/Removed:
- All lazy registry references (migrate to
RegistryHoldersubclasses).
- All lazy registry references (migrate to
Improvements
- Stable Registration Flow:
- Resolved issues from v1.6.x for reliable multi-loader registration.
Migration Guide:
- Replace
Registrar<T>withRegister - Use
RegistryItem/RegistryBlockinstead of lazy references - Forge users: Switch to Fabric/NeoForge or stay on v1.6.x