Compatibility
Minecraft: Java Edition
1.21–1.21.1
Platforms
Supported environments
75% of ad revenue goes to creators
Support creators and Modrinth ad-free with Modrinth+Links
Creators
Details
Changelog
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.
- Replaced lazy registry references with strongly-typed holders:
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
RegistryHolder
subclasses).
- 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
/RegistryBlock
instead of lazy references - Forge users: Switch to Fabric/NeoForge or stay on v1.6.x
Files
Metadata
Release channel
ReleaseVersion number
1.21-2.1Loaders
Game versions
1.21–1.21.1Downloads
7Publication date
June 6, 2025 at 11:51 PMPublisher

Xun
Member