Skip to content

Commit cae81d2

Browse files
committed
feat: fix and add new features
1 parent 6831a2b commit cae81d2

3 files changed

Lines changed: 131 additions & 92 deletions

File tree

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3535
- Added `VaillanI18n` API for modifying Minecraft vanilla language data
3636
@zimuya4153 @xianyubb
3737
- Added `toSNBT([space[,format]])` to all NBT object types @zimuya4153
38+
- Added `NbtCompound::hasTag(key)` for checking whether a compound contains a
39+
tag @zimuya4153
3840

3941
### Changed
4042

@@ -57,10 +59,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
5759
`NbtCompound::toSNBT([space[,format]])` now supports explicitly selecting
5860
`SnbtFormat`; one-argument usage still defaults to `SnbtFormat::ForceQuote`
5961
@zimuya4153
62+
- Improved NBT parsing and mutation:
63+
`NBT.parseSNBT(snbt)` now parses scalar and list SNBT values in addition to
64+
compounds; `NbtCompound::set*` APIs now create missing keys automatically;
65+
array/object-based NBT builders plus `NbtList::addTag` / `setTag` now accept
66+
`null` as `EndTag` @zimuya4153
6067

6168
### Fixed
6269

6370
- Fixed `NbtCompound::setTag` @zimuya4153
71+
- Fixed NBT list setter APIs so replacing existing elements no longer fails due
72+
to stale type checks @zimuya4153
73+
- Fixed byte-list to-object conversion in the NBT JSON bridge @zimuya4153
6474

6575
## [0.19.0] - 2026-07-04
6676

0 commit comments

Comments
 (0)