XunLib

Not exciting, another library mod
Back to Files

[Forge 1.21] v1.4

File nameXunLib-forge-1.21-1.4.jar
Uploader
Xun_skXun_sk
Uploaded
Apr 21, 2025
Downloads
15
Size
70.6 KB
Mod Loaders
Forge
File ID
6448390
Type
R
Release
Supported game versions
  • 1.21.1
  • 1.21

Curse Maven Snippet

Forge

implementation "curse.maven:xunlib-1245630:6448390"

Learn more about Curse Maven

What's new

Xunlib v1.4 Changelog

Features

  • Added @PersistentNbt annotation: Automatically serialize/deserialize block entity data to from NBT.  
    Simplify data persistence by annotating fields in your block entity classes.
  • Custom NBT Adapters: Implement the INbtAdapter interface to define custom serialization/deserialization logic.  
    Override default NBT handling for advanced use cases.

Breaking Changes

  • Moved setModId method: Relocated from CommonUtils to the ModSetup class.  
    Update your mod initialization code to call ModSetup.setModId(...) instead.
  • Renamed inventory methods:  
    - addItems(...) → insertItems(...)  
    - removeItems(...) → extractItems(...)  
    Refactor existing code to use the new method names.

Improvements

  • Enhanced Fuzzy Matching System:  
    Added whitelist/blacklist support for custom predicates.  
    Define inclusion/exclusion rules for item matching with greater flexibility.

Upgrade Note: If you rely on the old addItems or removeItems methods or setModId in CommoUtils, update your code to avoid runtime errors. Check the documentation for migration examples.

This mod has no related projects