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 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 fromCommonUtils
to theModSetup
class. Â
 Update your mod initialization code to callModSetup.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.
Files
Metadata
Release channel
ReleaseVersion number
1.21-1.4Loaders
Game versions
1.21–1.21.1Downloads
9Publication date
April 21, 2025 at 4:11 PMPublisher

Xun
Member