Releases: Amulet-Team/Amulet-NBT
Releases · Amulet-Team/Amulet-NBT
Amulet NBT v1.0.3.4
Added builds for Python 3.7, 3.8 and 3.9
Fixed an issue with the build workflow
Amulet NBT v1.0.3.3
Added builds for Python 3.7, 3.8 and 3.9
Amulet NBT v1.0.3.2
Changes
- Fixed a dependency issue during the setup/installation process where
numpy
would be attempted to be imported before it was installed
Amulet NBT v1.0.3.1
All releases from now onwards can be installed from PyPi using pip install amulet-nbt
Build test 2
1.0.3.1b3 Moved workflows into the correct directory
Build test 1
1.0.3.1b2 Added github actions for test and built
Amulet NBT v1.0.3
Bugfix and API improvement release for Amulet-NBT
Changes
- Added the
get()
method toNBTFile
object, arguments and behavior is the same as theget()
method fromdict
objects - Added a check to ensure that only GZip'd files are decompressed by checking the gzip header
Amulet NBT v1.0.2
Bugfix release for Amulet-NBT
Changes
- Fixed an issue when creating an TAG_List from a SNBT string that contained an empty list
Amulet NBT v1.0.1
Bugfix release for Amulet-NBT
Changes
- Added a
.pop()
method to theNBTFile
class that behaves like thedict.pop()
method - Fixed an issue where unnecessary warnings were printed when saving
_TAG_Array
subclasses - Fixed an issue in
from_snbt()
where strings wouldn't be un-escaped if they had quotes around them - Changed the
name
argument in thesetup()
call insetup.py
to match the expected normalized form described in PEP 503
Amulet NBT v1.0.0
Initial release of the Amulet-NBT library
This library is a continuation and port of the old PyMCLevel NBT library to Python 3.7. However, this library also has additional features and departures.
Changes
- Loaded NBT files are now contained in a
NBTFile
object which allows for the setting of the root name for NBT/DAT filesNBTFile
objects act as a wrapper aroundTAG_Compound
objects, so accessing top-level keys from the NBTFile object will work the same as it would from the TAG_Compound object
- Little endian support is no longer a context specific mode or state, little and big endian files can be saved and loaded via boolean flags to the respective methods
- NBT arrays, such as TAG_Int_Array and TAG_Long_Array, do not immediately cast the supplied array to the required dtype for that tag array, but will cast to appropriate dtype when saving in both little and big endian mode
- All NBT Tag objects have a
to_snbt()
method which return the object's value as a valid SNBT string as outlined on the Minecraft NBT Wiki page - A
from_snbt()
method was added to parse full NBT tag objects from a given SNBT string - A pure python implementation is also present and will be used instead if the cython version cannot be loaded
- If you wish to know which version was loaded, the
amulet_nbt.IMPLEMENTATION
attribute will return "cython" for the cython version and "python" for the pure-python one.
- If you wish to know which version was loaded, the