Compatibility
Minecraft: Java Edition
1.21.x
1.20.x
1.19.x
1.18.x
1.17.x
1.16.x
1.15.x
1.14.x
1.13.x
1.12.x
1.11.x
1.10.x
1.9.x
1.8.8–1.8.9
1.7.9–1.7.10
Platforms
Bukkit
Supported environments
90% of ad revenue goes to creators
Support creators and Modrinth ad-free with Modrinth+Creators
Details
Licensed MIT
Created 2 years ago
Updated 2 weeks ago
Changelog
New major NBTAPI release, adding 1.19.3 support and a new way to interact with the API.
Changes:
- 1.19.3 support
- Added interfaces to most nbt logic, including read-only versions
- Added a new utility class
NBT
, which provides clean lambda access to read and write NBT. https://github.com/tr7zw/Item-NBT-API/wiki/Using-the-NBT-API has updated examples on how to use this class. - Utility
readFrom
/saveTo
methods to NBTFile hasTag
as alternative forhasKey
, returningboolean
instead ofBoolean
- Added
getOrDefault
method - Added
getOrNull
method - Deprecated
setObject
/getObject
, please do the serialization yourself using your preferred lib/settings getUUID
/setUUID
now will handle pre-1.16 and post-1.16 formats correctly on their owngetItemStack
will now return null if the tag is not foundgetKeys
is now a copy of the Set, and no longer linked to NMS internal objects- Added
setItemStackArray
/getItemStackArray
methods - Added
modifyMeta
methods to ItemStacks. Do not modify the NBT while inside the modifyMeta scope - The wiki is now inside the Github repository, so anyone can make pull requests to add examples, clarifications etc.
NBTItem
now will correctly reject ItemStacks of size 0- Updated a lot of Javadoc
- The full API Javadoc is now available under https://tr7zw.github.io/Item-NBT-API/v2-api/
- Pulling the NBTAPI plugin via Maven/Gradle will now also correctly contain the API Javadoc(only had the plugin Javadoc before)
- Fixed small NPE error during error reporting(ironic)
NBTCompoundList
now extendNBTList<ReadWriteNBT>
instead ofNBTList<NBTListCompound>
. This is a compile-time breaking change, and code needs to be updated accordingly. Already published plugins should not be affected by this.
Files
Metadata
Release channel
ReleaseVersion number
2.11.0Loaders
Game versions
1.8.9, 1.9.2, 1.9.4, 1.10.2, 1.11.2, 1.12.2, 1.13.2, 1.14.4, 1.15.2, 1.16.4–1.16.5, 1.17.1, 1.18.2, 1.19.2–1.19.3Downloads
818Publication date
December 11, 2022 at 7:16 PMPublisher
tr7zw
Owner