232.0K
228
Список изменений
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/saveTomethods to NBTFile hasTagas alternative forhasKey, returningbooleaninstead ofBoolean- Added
getOrDefaultmethod - Added
getOrNullmethod - Deprecated
setObject/getObject, please do the serialization yourself using your preferred lib/settings getUUID/setUUIDnow will handle pre-1.16 and post-1.16 formats correctly on their owngetItemStackwill now return null if the tag is not foundgetKeysis now a copy of the Set, and no longer linked to NMS internal objects- Added
setItemStackArray/getItemStackArraymethods - Added
modifyMetamethods 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.
NBTItemnow 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)
NBTCompoundListnow 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.
Файлы
item-nbt-api-plugin-2.11.0.jar(989.48 KiB)
ОсновнойМетаданные
Канал релиза
Release
Номер версии
2.11.0
Загрузчики
BukkitPaperPurpurSpigot
Версии игры
1.8.91.9.21.9.41.10.21.11.21.12.21.13.21.14.41.15.21.16.41.16.51.17.11.18.21.19.21.19.3
Загрузок
901
Дата публикации
2 г. назад