Commit Graph

60 Commits

Author SHA1 Message Date
Nassim Jahnke b15b783c2f
Make Tag an interface, move packages 2024-05-11 14:39:01 +02:00
Nassim Jahnke d43da3189e
Fix write if the path has no parent 2024-05-03 19:11:56 +02:00
Nassim Jahnke 8149ec3bd0
Prevent adding self in compound tag 2024-04-22 15:18:18 +02:00
Nassim Jahnke 6ca922db67
Add more getters to CompoundTag 2024-03-09 15:30:08 +01:00
Nassim Jahnke 921fa31b29
Add getUnchecked method to CompoundTag 2024-03-09 12:47:22 +01:00
Nassim Jahnke 9be057263f
Add stream method to ListTag 2024-03-08 11:37:40 +01:00
Nassim Jahnke 45506291a3
4.4.0: Add generic type to ListTag 2024-03-07 12:02:48 +01:00
Nassim Jahnke 9f71f9b978
Add ByteTag boolean constructor 2024-02-29 13:45:43 +01:00
Nassim Jahnke eec9aca691
4.2.0: More helpers, deprecate primitive setValue methods
In anticipation of value classes existing before I die of age, the primitive wrappers (and only those) will become immutable in the future.
2024-02-10 20:43:36 +01:00
Nassim Jahnke ea616b1e44
4.1.0: Add helper getters to CompoundTag 2024-02-10 19:26:53 +01:00
Nassim Jahnke 18754b7774
4.0.1: Fix ByteArrayTag copy 2024-01-02 12:49:51 +01:00
Nassim Jahnke 1d5b6e43f2
4.0.0: Refactor NBTIO, replace clone with copy 2023-12-31 13:30:15 +01:00
Nassim Jahnke 0439d7af76
3.5.0: Add NumberArrayTag 2023-12-30 18:24:55 +01:00
Nassim Jahnke 324eb6af2c
3.4.0: Add helper put methods 2023-12-29 11:43:13 +01:00
Nassim Jahnke ad8ac024c4
3.3.0: Add Tag#asRawString
Also fix convertToTag
2023-12-10 11:25:21 +01:00
Nassim Jahnke f04adbae9a
Fix ConverterRegistry#convertToTag 2023-12-08 20:28:22 +01:00
Nassim Jahnke 4f5060b5fa 3.2.0 Release
Override getValue in NumberTag
2023-10-16 15:31:17 +10:00
Nassim Jahnke f243f76d6f 3.1.0 Release
Add NumberTag#asBoolean
2023-10-16 15:25:43 +10:00
Nassim Jahnke 63c109efde 3.0.0 Release
- More general refactoring
- Add SNBT serializer
- Rebrand to ViaNBT, as the project has shifted greatly from the original

Package rename will follow at a (much) later date when ViaVersion is ready for another major version bump
2023-10-08 18:35:19 +10:00
Nassim Jahnke 412b730811 2.1.3 Release
Improve ListTag type error
2023-10-07 22:13:05 +10:00
Nassim Jahnke 9c06609e68
2.1.2 Release 2023-03-03 14:03:07 +01:00
Glavo 04c0131935
Fix resource leaks
(cherry picked from commit 537221a0cad28cc0df49a9d90a15e241b297d37f)
2023-03-03 14:01:05 +01:00
Nassim Jahnke d80ab5b7bd
2.1.1, remove Guava dependency 2023-03-03 13:51:13 +01:00
Nassim Jahnke eb96d8bca8
Add limiter for max bytes and nesting level 2022-08-14 22:16:32 +02:00
Nassim Jahnke 6f424509b2
Bump version to 2.0, pom cleanup 2022-05-16 13:27:55 +02:00
Myles 0a022140ec Add distribution url 2021-03-14 21:28:30 +00:00
KennyTV 104486c6e1
Various optimizations and improvements
* Most notably, move the tag name out the of tags themselves
  * Always read/write CompoundTags in NBTIO
* Don't wrap values given in Tag#setValue / Tag constructors
* Abstract NumberTag class for easier (and primitive) number handling
* Don't use reflection when creating tag instances
* Directly use value in Tag#clone() for number tags
* Implement tag specific equals() methods
* Update to Java 8
* Replace links using http with https in maven pom
* Remove custom nbt types
* Proper checks for non-null values
2021-03-14 18:21:42 +01:00
Steveice10 d7bc3d9fd4 Bump version to 1.4-SNAPSHOT 2019-08-27 23:18:55 -07:00
Steveice10 e21000b445 Bump version to 1.3 2019-08-27 23:18:18 -07:00
Steveice10 9bf4adb2af Bump version to 1.3-SNAPSHOT 2019-04-29 01:49:38 -07:00
Steveice10 d50274d230 Bump version to 1.2 2019-04-29 01:49:11 -07:00
Steveice10 a86b513901 Update surefire plugin to 2.22.0 2018-08-20 12:21:51 -07:00
Steveice10 159fa3fdbb Add argLine to properties. 2018-07-02 15:23:25 -07:00
Steveice10 d688dd34be Bump version to 1.2-SNAPSHOT. 2018-07-02 15:13:59 -07:00
Steveice10 9029b7411c Bump version to 1.1 2018-07-02 15:13:28 -07:00
sgdc3 18c633adbb Pom enhancements 2018-02-01 19:02:39 +01:00
sgdc3 b6bcb81a3c Pom cleanup 2018-01-30 18:31:22 +01:00
Steveice10 8f122b7b18 Bump version for development. 2017-03-01 16:14:16 -08:00
Steveice10 659bda0f7c Migrate away from spacehq.org 2017-03-01 16:09:25 -08:00
Myles 094989419c Bump version to 1.1 2016-12-24 15:07:33 +00:00
Steveice10 c9852292d3 Generate source and javadoc jars. 2016-12-15 16:52:22 -08:00
Steven Smith ea50eeda4c Update URLs. 2015-07-21 15:58:18 -07:00
Steven Smith cf0c40b895 General cleanup, fixes, and re-versioning. 2015-07-20 11:13:51 -07:00
Steveice10 1c005ad1ec 1.4: Refactor packages, remove generics from ListTag, add value<->tag conversion system, merge NBTFileIO and NBTIO 2014-03-25 20:16:23 -07:00
Steveice10 3df755b8da Remove unnecessary resource inclusion, use getUnsigned methods for tag IDs and name lengths 2014-03-21 23:26:39 -07:00
Steveice10 7f7acc4193 Refactored ch.spacebase to org.spacehq, reformatted code and line endings. 2014-03-01 16:46:32 -08:00
Steveice10 3da0240695 Updated version to 1.3-SNAPSHOT, changed license and pom.xml data for rewrite 2013-12-19 17:16:33 -08:00
Steveice10 778c4f65b7 Fix cases where default NBT tags might not be registered when they are needed 2013-12-13 19:00:11 -08:00
Steveice10 0353d28c60 Rewrote library to be a bit more flexible 2013-11-21 21:06:55 -08:00
Steveice10 2e7ecec145 Updated maven URLs again 2013-11-17 20:51:18 -08:00