PHP library for working with the NBT (Named Binary Tag) data storage format, as designed by Mojang.
NBTStream->read()
now throws UnexpectedValueException
instead of InvalidArgumentException
when encountering a TAG_End
at the beginning of a NBT buffer.NBTStream->readCompressed()
now throws UnexpectedValueException()
on decompression failures instead of passing false
to read()
and exploding things.NBTStream::fromArray()
and NBTStream::toArray()
mishandling IntArrayTag
s.CompoundTag
and ListTag
now throw OutOfBoundsException
when calling current()
or key()
when their iterators are invalid.TAG_Compound
.TAG_Compound
during decoding.NBTStream->read()
and NBTStream->write()
with non-compound root tags. These had never been seen before Minecraft Bedrock 1.13.NBTStream->get()
now throws BinaryDataException
when there are not enough bytes left to read.CompoundTag->getTag()
.pocketmine/binaryutils
^0.1.9
is now required.NBTStream->read()
now supports an optional $maxDepth
parameter.JsonNbtParser
now throws more specific exceptions.NBTStream->read()
now accepts a reference $offset
parameter which can be used to start reading from a specific point in a string payload.