From 2cce1bca0a865279f0ff925c128c5e18215de9f6 Mon Sep 17 00:00:00 2001 From: "Kristian S. Stangeland" Date: Wed, 19 Jun 2013 23:19:46 +0200 Subject: [PATCH] Certain packets must be cloned. Document this. --- .../main/java/com/comphenix/protocol/Packets.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/ProtocolLib/src/main/java/com/comphenix/protocol/Packets.java b/ProtocolLib/src/main/java/com/comphenix/protocol/Packets.java index 8b543e32..b4337dca 100644 --- a/ProtocolLib/src/main/java/com/comphenix/protocol/Packets.java +++ b/ProtocolLib/src/main/java/com/comphenix/protocol/Packets.java @@ -85,6 +85,12 @@ public final class Packets { public static final int ENTITY_HEAD_ROTATION = 35; public static final int ENTITY_STATUS = 38; public static final int ATTACH_ENTITY = 39; + + /** + * Sent when an entities DataWatcher is updated. + *

+ * Remember to clone the packet if you are modifying it. + */ public static final int ENTITY_METADATA = 40; public static final int MOB_EFFECT = 41; public static final int REMOVE_MOB_EFFECT = 42; @@ -109,6 +115,12 @@ public final class Packets { public static final int SET_CREATIVE_SLOT = 107; public static final int UPDATE_SIGN = 130; public static final int ITEM_DATA = 131; + + /** + * Sent the first time a tile entity (chest inventory, etc.) is withing range of the player, or has been updated. + *

+ * Remember to clone the packet if you are modifying it. + */ public static final int TILE_ENTITY_DATA = 132; public static final int STATISTIC = 200; public static final int PLAYER_INFO = 201;