Kristian S. Stangeland
c2ea92ab37
Refactoring: Made NbtList and NbtCompound into generic interfaces.
2013-01-08 21:11:29 +01:00
Kristian S. Stangeland
749f006621
Add the ability to serialize ItemStacks to strings.
2013-01-08 03:33:24 +01:00
Kristian S. Stangeland
4756de8066
Factory methods should return NBTWrapper.
2013-01-08 03:16:21 +01:00
Kristian S. Stangeland
79daec662c
Added GPL license information.
2013-01-08 02:05:15 +01:00
Kristian S. Stangeland
9fb5f7f2dd
Fine tuning of the NBT system. Added more test cases.
2013-01-08 02:00:42 +01:00
Kristian S. Stangeland
70589a6263
Added the ability to read NBT ItemStack tags.
2013-01-07 23:39:16 +01:00
Kristian S. Stangeland
38137cea2c
Verify element type in tag list.
2013-01-07 20:37:21 +01:00
Kristian S. Stangeland
6b3d85af62
Change "clone" to "deepClone", in line with PacketContainer.
2013-01-07 20:24:15 +01:00
Kristian S. Stangeland
8abb93114f
Ensure that we can create compounds and lists.
2013-01-07 20:15:21 +01:00
Kristian S. Stangeland
671654aaaf
Add support for reading and writing NBT tags in packets.
...
This wraps the internal NBT read/write system in Minecraft.
2013-01-07 10:14:25 +01:00
Kristian S. Stangeland
73e71ff954
Don't load classes on secondary threads. ADDRESSES TICKET-27.
...
We'll move the "load class" call to the main thread, hopefully fixing
ticket 27. The secondary thread will still call the "define class"
protected method, which may not be thread safe.
2013-01-06 20:14:25 +01:00
Kristian S. Stangeland
07ae10bcd6
This is a snapshot version.
2013-01-02 20:39:10 +01:00
Kristian S. Stangeland
6996db9e63
Add a serializer for reading and writing ItemStacks to byte arrays.
...
To aid discoverability, we add a short-cut to this serializer in
PacketContainer, next to the getByteArrays() method.
2013-01-02 20:37:24 +01:00
Kristian S. Stangeland
3723e73e81
Reverted the attempt at automating the version number in plugin.yml.
2013-01-02 20:17:15 +01:00
Kristian S. Stangeland
711ffb1db7
Updated Metrics to version 6.
2013-01-02 20:16:53 +01:00
Kristian S. Stangeland
f995accd0c
Let maven automatically insert the correct version in plugin.yml
2012-12-27 19:00:49 +01:00
Kristian S. Stangeland
6bd8ec5791
Updated to 1.9.1-SNAPSHOT for development towards the next version.
2012-12-27 17:46:09 +01:00
Kristian S. Stangeland
fd69f08a1d
Maven crap.
2012-12-27 17:37:45 +01:00
Kristian S. Stangeland
82ec3dc5f1
Bumping to 1.9.0 to indicate that the cloning API is improved.
2012-12-27 17:03:30 +01:00
Kristian S. Stangeland
0d34b82d72
Don't copy inflated buffers - they won't be modified in any case.
...
Resulted in some pretty ugly factory code.
2012-12-27 16:28:30 +01:00
Kristian S. Stangeland
20ab2a71ac
Assume SecretKey and PublicKey is immutable too.
2012-12-27 15:11:08 +01:00
Kristian S. Stangeland
d16e0bf1c6
Add support for cloning maps.
2012-12-27 15:06:25 +01:00
Kristian S. Stangeland
f0e7b9aec7
Added missing copyright notices (GPL).
2012-12-27 14:28:33 +01:00
Kristian S. Stangeland
01b9e15930
No need to expose the MinecraftVersion class.
2012-12-27 14:23:22 +01:00
Kristian S. Stangeland
0f30a11510
Bumping version to 1.8.5-SNAPSHOT.
2012-12-27 12:12:44 +01:00
Kristian S. Stangeland
447f01a3dd
Crash if multiple copies of ProtocolLib are running simultaneously.
2012-12-27 12:12:11 +01:00
Kristian S. Stangeland
695a4f3b0e
Added a shallow clone method.
...
Removed the identity cloner, as it's no longer needed.
2012-12-27 11:13:42 +01:00
Kristian S. Stangeland
dea725e1e3
Move the field cloning reponsibility to FieldCloner.
2012-12-27 10:32:26 +01:00
Kristian S. Stangeland
8b91e3034d
Added a generic cloning library to properly support deepClone().
2012-12-27 09:23:07 +01:00
Kristian S. Stangeland
fdbd3d6495
Rename ObjectCloner to ObjectWriter.
...
It's more accurately thought off as a way of writing the content of
object A to object B, than a generic cloning method.
2012-12-25 15:46:33 +01:00
Kristian S. Stangeland
655fbf4799
Added StructureModifier tests for different packet types.
2012-12-25 15:44:14 +01:00
Kristian S. Stangeland
425c5fd682
Add equals() and hashcode() to the wrapped DataWatcher.
2012-12-24 21:42:48 +01:00
Kristian S. Stangeland
cc3441dfeb
Continue to remove unnecessary raw types.
2012-12-23 18:52:00 +01:00
Kristian S. Stangeland
450fbd8e8d
Bumping to beta 1.4.6 of CraftBukkit
2012-12-23 04:22:02 +01:00
Kristian S. Stangeland
d328111b38
No need to suppress any warnings - we can use wildcards.
2012-12-22 23:16:21 +01:00
Kristian S. Stangeland
5d06b9e84c
Bumping to version 1.8.4-SNAPSHOT.
2012-12-21 18:33:40 +01:00
Kristian S. Stangeland
555b5d0795
Create a typed ItemStack array when writing it to a field. FIXES 24.
...
After the package versioning commit, ProtocolLib switched to performing
everything exclusively with reflection. Unfortunately, this may have
introduced a couple of new bugs.
This problem is caused by the fact that ProtocolLib converts a Bukkit
ItemStack array to an Object array instead of an array of NMS
ItemStacks. This object array can't be assigned to a ItemStack array,
so the write operation fails.
The fix is to create a typed array with reflection.
2012-12-21 18:33:09 +01:00
Kristian S. Stangeland
35083f87fe
Increment to version 1.8.3-SNAPSHOT.
2012-12-21 00:37:46 +01:00
Kristian S. Stangeland
c71bf61511
1.4.6 appears to be working properly.
2012-12-21 00:36:04 +01:00
Kristian S. Stangeland
5a96a63ff8
Added support for 1.4.6.
...
Yes, it's essentially a hack, but I don't have enough time today to
find a better way. It will have to do until 1.5.0 is out.
2012-12-21 00:27:13 +01:00
Kristian S. Stangeland
220c0e4bc5
Ensure that CraftItemStacks can be converted to NMS item stacks.
2012-12-19 23:48:31 +01:00
Kristian S. Stangeland
3b142db569
Don't ignore critical exceptions - print them.
2012-12-19 23:10:50 +01:00
Kristian S. Stangeland
1509f5cd8b
Increasing to 1.8.2-SNAPSHOT for development toward the next version.
2012-12-19 23:10:28 +01:00
Kristian S. Stangeland
3b0790f136
Bumping to release of 1.8.1
2012-12-19 18:04:44 +01:00
Kristian S. Stangeland
b0cc1440dd
Revert "Remove unused classes from CGLib. Saves us 136 kB. "
...
This reverts commit b1bd7e9fcd
.
2012-12-19 17:52:56 +01:00
Kristian S. Stangeland
d7d6e24506
Added support for the new way of converting CraftItemStacks in 1.4.5
2012-12-19 17:51:21 +01:00
Kristian S. Stangeland
b1bd7e9fcd
Remove unused classes from CGLib. Saves us 136 kB.
2012-12-15 07:17:04 +01:00
Kristian S. Stangeland
79afb0bcdc
Forgot to add the target object in the ChunkPosition wrapper.
2012-12-13 00:39:50 +01:00
Kristian S. Stangeland
86f15c8674
Fallback on our own custom object printer.
2012-12-12 18:35:58 +01:00
Kristian S. Stangeland
4440e6fcaa
Prevent ProtocolLib from spamming the console too.
2012-12-12 18:34:02 +01:00