- New API
NBTSchema#beginCompound()for creating a schema for validating compound tags. - Relax type bounds of the
NBTSchema#typeIsmethod.
- The
NBTSchema.Builder#build()method has been renamed toend().
- New API
NBTSchemafor validating NBT elements.
- The
NBTValidatorinterface has been rewritten and now provides two methods for validation:- [#test(NBTElement)]: Returns
trueif the element meets the rules of this validator, otherwise returnsfalse. - [#validate(NBTElement)]: Does nothing if the element meets the rules of this validator, otherwise throws an exception.
- [#test(NBTElement)]: Returns
- New API
NBTCodec#writeRegion(Path, ChunkRegion)andNBTCodec#writeRegion(Path, ChunkRegion, ExternalChunkAccessor)for writing chunk regions to files. - New API
NBTCodec#byteSize(Tag)andNBTCodec#contentByteSize(Tag)for calculating the encoded byte size of NBT tags. - New API
NBTCodec#writeTag(ByteBuffer, Tag)for writing NBT tags to a byte buffer. - New API
NBTCodec#writeTagToByteArray(Tag)for writing NBT tags to a byte array. - New API
ArrayTag#getElementType()for getting the element type of array tags.
- Initial release