Kristian S. Stangeland
988026611c
Added support for modifying attributes in UPDATE_ATTRIBUTES.
...
This contains a fully-fledged API for reading and modifying Attribute-
Snapshot and AttributeModifier. Keep in mind that these objects are
immutable, so modification must be made through object builders.
The packets are also shared, so packet cloning might be necessary if
attributes should differ per player.
2013-07-28 02:02:27 +02:00
Kristian S. Stangeland
7170bfcadc
Only add the WorldType converter if it exists in that Minecraft version
2013-07-26 18:42:06 +02:00
Kristian S. Stangeland
5c2fc8684e
Use the object wrappers when printing custom Minecraft objects.
2013-07-26 17:30:47 +02:00
Kristian S. Stangeland
34f5278605
Improve support for the toString() method in wrapped objects.
2013-07-26 05:04:59 +02:00
Kristian S. Stangeland
5584357fee
Pass on the "filtered" parameter in sendServerPacket. FIXES Ticket-111
...
Looks like our good ol' friend copy-paste betrayed us yet again. I need
more unit tests.
2013-07-26 03:55:36 +02:00
Kristian S. Stangeland
260f108749
Don't complain about plugins that does their own dependency management
...
Let me know if I should add your plugin to the exception list.
2013-07-25 12:51:41 +02:00
Kristian S. Stangeland
3b76fe3d99
Increment to 2.5.1-SNAPSHOT for development towards the next version.
2013-07-22 17:24:16 +02:00
Kristian S. Stangeland
d116be6fd4
Bumping to version 2.5.0.
2013-07-22 16:46:19 +02:00
Kristian S. Stangeland
51879afe07
Updating Eclipse settings.
2013-07-22 16:45:11 +02:00
Kristian S. Stangeland
d70f102655
Add a getEntityModifier() overload that makes it easier to use.
...
Most people use it to retrieve the entity referenced in a certain
packet, which will always be in the world of the receiving player. This
method makes the same assumption.
2013-07-21 03:23:29 +02:00
Kristian S. Stangeland
5f54b95998
Fix getEntityModifier() for MPCP 1.6.2.
2013-07-21 03:20:13 +02:00
Kristian S. Stangeland
6054d559e1
Add support for the new JSON chat message format. FIXES Ticket-109
...
In addition, the PacketConstructor can now handle non-wrapped objects,
along with Class types instead of instances in withPacket().
2013-07-19 23:43:39 +02:00
Kristian S. Stangeland
0b56df20d5
Add a getMinecraftVersion() method to the ProtocolManager.
...
This can be useful if you want to implement different read/write
methods for each version of Minecraft.
2013-07-19 21:22:34 +02:00
Kristian S. Stangeland
458a92c34a
Added missing open tile entity packet.
2013-07-19 20:03:00 +02:00
Kristian S. Stangeland
51c645928f
Make it possible to specify optionIntercept() when using BOTH.
2013-07-19 19:47:22 +02:00
Kristian S. Stangeland
7b9a5e9db4
Make the clientSide/serverSide builder options additative.
2013-07-19 19:41:38 +02:00
Kristian S. Stangeland
2756b80ac0
Add a more beatiful builder pattern to PacketAdapter.
...
We can't use a traditional builder pattern though, as it's commonly
used for constructing inner anonymous classes. But we can do the next
best thing and create a builder for the parameters themselves.
Here's what the new syntax looks like:
new PacketAdapter(params(this, 1, 2, 3).clientSide()) {
@Override
public void onPacketReceiving(PacketEvent event) {
// Your code here
}
};
Where "this" referes to your plugin.
2013-07-19 03:46:51 +02:00
Kristian S. Stangeland
62094492a9
Make it possible to intercept and expand upon the unknown origin error.
...
We add another configuration option that enables stack traces of
warnings.
2013-07-19 02:27:13 +02:00
Kristian S. Stangeland
92781be618
Add support for SportBukkit. FIXES Ticket-107
2013-07-18 22:36:01 +02:00
Kristian S. Stangeland
ce2079b0bc
Bumping to 2.5.0-SNAPSHOT.
2013-07-17 23:03:16 +02:00
Kristian S. Stangeland
1e4a03b056
Minecraft 1.6.2 seems to work fine.
2013-07-17 23:02:45 +02:00
Kristian S. Stangeland
7f69c41bf6
Don't pass our CaptureInputStream to the "get player identity" function
2013-07-17 23:02:16 +02:00
Kristian S. Stangeland
a31dc6fdcb
Handle NULL results from the deserialization methods.
2013-07-17 21:31:44 +02:00
Kristian S. Stangeland
9448e06ad8
Add the ability to store an NBT compound in a given ItemStack.
2013-07-17 20:59:09 +02:00
Kristian S. Stangeland
aa9d84c639
Added the ability to serialize and deserialize NbtCompounds.
2013-07-17 20:31:25 +02:00
Kristian S. Stangeland
b0cec61d66
Added more utility methods to the stream serializer class.
...
It now supports the default Minecraft string encodign (UTF-16).
2013-07-17 20:07:02 +02:00
Kristian S. Stangeland
9f0d3a5054
Added the ability to retrieve the input buffer as a stream.
2013-07-17 19:49:00 +02:00
Kristian S. Stangeland
fefad5d806
Cleanup the write-packet method interceptor.
2013-07-17 19:40:48 +02:00
Kristian S. Stangeland
35d5912275
Rename to SerializableCloner.
2013-07-17 15:49:35 +02:00
Kristian S. Stangeland
e7aa1ca98c
Merge branch 'master' of https://github.com/aadnk/ProtocolLib.git
2013-07-17 07:28:36 +02:00
Kristian S. Stangeland
6554a34752
Ensure that the new read packet feature is supported in Spigot.
2013-07-17 07:27:03 +02:00
Kristian S. Stangeland
6527c0a7f5
Added the ability to intercept serialized input packets on CraftBukkit.
...
Spigot will be added later.
2013-07-17 06:46:34 +02:00
Kristian S. Stangeland
8f30199a22
Adding a packet handler adapter, for symmetri with PacketAdapter.
2013-07-17 05:52:20 +02:00
Kristian S. Stangeland
e25ab31316
Generate a new class for each packet type, as getID is final.
...
We can't override the getID method in Packet, as it is marked as final.
Instead, we'll just generate a seperate class for each packet ID that
needs to be intercepted.
We can't inherit from the packet ID of any particular class, as it
may get recognized and modified by the sendPacket() method. This could
be a problem if this recogition is necessary, but we'll come back to
this later.
2013-07-17 05:48:34 +02:00
Kristian S. Stangeland
051a4eda87
Add the ability to intercept the write method of packets.
...
This is done by constructing a proxy around the class after every
event handler has been invoked, intercepting the write method. Each
PacketOutputHandler registered by the packet event listeners is
invoked in turn, modifying a byte array of the data that will be
written to the network stream.
The byte array is initially filled with the serialized version of the
packet in the packet event.
2013-07-17 03:52:27 +02:00
Kristian S. Stangeland
45f36f9ad6
Use reflection to clone certain packets (44 - update attributes).
...
These packets contain objects (AttributeSnapshot and
AttributeModifiable) isn't supported by the current cloning system.
2013-07-11 21:51:51 +02:00
Kristian S. Stangeland
468d013032
Remove JavaDoc - that should be in gh-pages.
2013-07-11 20:58:16 +02:00
Kristian S. Stangeland
cd0f8a6fa5
Merge branch '1.6.2'
2013-07-11 00:12:45 +02:00
Kristian S. Stangeland
f2125623f6
Correct the fallback method for retrieving WatchableObjects.
2013-07-11 00:04:42 +02:00
Kristian S. Stangeland
1000378b78
Update packet container serialization for Minecraft 1.6.2.
2013-07-10 23:41:49 +02:00
Kristian S. Stangeland
c590e4a825
Update the stream serializer for Minecraft 1.6.2
2013-07-10 23:33:25 +02:00
Kristian S. Stangeland
a4eb219a9a
Update unit tests to CraftBukkit 1.6.2
2013-07-10 22:45:20 +02:00
Kristian S. Stangeland
6fe7fe46f3
Use a builder pattern instead of a constructor with 8 parameters.
...
Also make use of the fact that Spigot may have initialized its
server connection (in the latest version).
2013-07-07 14:03:07 +02:00
Kristian S. Stangeland
fb7f80b646
Fix typo before it's too late.
2013-07-07 11:26:10 +02:00
Kristian S. Stangeland
00ff832e07
Adding the two new packets for 1.6.1.
2013-07-06 16:32:42 +02:00
Kristian S. Stangeland
47a5382709
Properly handle reloads on Spigot.
...
The code is getting uglier and uglier ...
2013-07-06 08:06:29 +02:00
Kristian S. Stangeland
a4f81e5e9f
Update asynchronous manager and handle static senders in reports.
2013-07-06 07:51:02 +02:00
Kristian S. Stangeland
6847283fb3
Added the Comphenix Maven repository.
2013-07-06 00:25:59 +02:00
Kristian S. Stangeland
5e35f46b96
Added support for Spigot with Netty disabled.
...
I've also added BukkitExecutors to ProtocolLib, which any plugin that
depend on ProtocolLib may now use.
2013-07-06 00:24:11 +02:00
Kristian S. Stangeland
81e158d74a
Increment to 2.4.8-SNAPSHOT for development towards the next version.
2013-07-05 06:23:40 +02:00