Releases: PowerNukkit/NBT-Manipulator
Releases · PowerNukkit/NBT-Manipulator
v3.1.0
3.1.0 - 2021-10-28
Added
- Automatic Java Jigsaw Module named
br.com.gamemods.nbtmanipulator
NbtIO.writeNbtTagDirectly()
andNbtIO.readNbtTagDirectly()
allowing reading and writing arbitrary tags.
Changed
- Updated to Kotlin
1.5.31
- The source code was split in multiple files and now uses the explicit API feature
v3.0.0
3.0.0 - 2021-08-12
Fixed
- Made a micro-optimization to the
NbtCompound
constructor.
Added
- Empty constructor for the array tag types. It may break old method references like
::NbtByteArray
(Breaking Change) - A constructor which accepts
Iterable
toNbtCompound
- Constructors which accepts
String
to allNbtTag
types stringValue
property toNbtTag
unsiged
property toNbtByte
- A static function
NbtByte.unsigned(String)
to a createNbtByte
from unsigned strings. - Little endian
DataInput
andDataOutput
implementations - Support to read and write Bedrock Edition NBT files using
NbtIO
Changed
NbtByte
'sInt
constructor now throwsNumberFormatException
if the number is outside the0..255
range. (Breaking Change)- Improved the
toString()
methods of allNbtTag
types (Breaking Change) NbtList
now enforces the contents to have the same type on modifications (Breaking Change)NbtCompound
now implementsequals
andhashCode
as described by theMap
interface (Breaking Change)NbtList
now implementsequals
andhashCode
as described by theList
interface (Breaking Change)- Renamed
NbtByte.value
toNbtByte.signed
.NbtByte.value
is still usable but it is deprecated,
is being replaced in byte-code and will be removed in a future version. NbtList
and the returned sub-lists now implementsRandomAccess
v2.0.0
2.0.0 - 2020-01-24
Changed
- Upgraded to Kotlin 1.3.61
NbtIO.writeNbtFile
andNbtIO.readNbtFile
now throwsIOException
in Java (Breaking Change)
v1.1.0
1.1.0 - 2019-06-02
Added
- New constructor to
NbtList
which accepts an otherNbtList
to resolve an ambiguity call in this scenario. toNbtList()
extension function to many combinations ofIterable
andArray
which contains valid values forNbtList
, including list of list.NbtList.create
and it's sublist flavours to simplify list creations for Java usersadd
,remove
,contains
,minusAssign
andplusAssign
extension functions to many possibleNbtList
for easy usage by Kotlin users
v1.0.1
v1.0.0
1.0.0 - 2019-05-27
Added
deepClone
method to all tagsrequire
method toNbtCompound
Changed
NbtList
is now aMutableList
and not adata class
anymore. This completely changes how API users interacts with them.NbtCompound
is now aMutableMap
and not adata class
anymore. This completely changes how API users interacts with them.- Renamed the parameter
name
tokey
in all methods ofNbtCompound
- Renamed the parameter
tagName
totagKey
in all copy methods ofNbtCompound
- All get methods from
NbtCompound
will now throwNoSuchElementException
if the requested key does not exists in the compound - All methods which throws exceptions now have the exception which is thrown registered in the binary files.
Useful for Java users and who couldn't get the sources or javadoc.
v0.0.2
0.0.2 - 2019-05-27
Added
- Static methods for java users calling
NbtIO
- Documentation to all public types, functions and properties
- The methods
NbtCompound.remove(String)
,NbtCompound.remove(String, NbtTag)
andNbtCompound.minusAssign(String)
Changed
- JavaDoc will not generate when building on Java 9+ due to a dokka issue
- The targetCompatibility to Java 8