promotional bannermobile promotional banner

XunLib

A common code library designed to ease mod dev
Back to Files

[Fabric 1.21] v2.1

File namexunlib-fabric-1.21-2.1.jar
Uploader
Xun_skXun_sk
Uploaded
Jun 6, 2025
Downloads
32
Size
109.8 KB
Mod Loaders
Fabric
File ID
6623483
Type
R
Release
Supported game versions
  • 1.21.1
  • 1.21

Curse Maven Snippet

Fabric

modImplementation "curse.maven:xunlib-1245630:6623483"

Learn more about Curse Maven

What's new

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 objects
    • RegistryItem: Specialized holder for items
    • RegistryBlock: 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 RegistryHolder subclasses).

Improvements

  • Stable Registration Flow:
    • Resolved issues from v1.6.x for reliable multi-loader registration.

Migration Guide:

  1. Replace Registrar<T> with Register
  2. Use RegistryItem/RegistryBlock instead of lazy references
  3. Forge users: Switch to Fabric/NeoForge or stay on v1.6.x
Type
Name
Game Versions
Mod Loaders
Size
Downloads
Uploaded