From ba6c6e5abf46b2664199cfa2222676e470125c92 Mon Sep 17 00:00:00 2001 From: "Kristian S. Stangeland" Date: Mon, 18 Nov 2013 22:25:05 +0100 Subject: [PATCH] Improve the documentation of getTypeID(). It might be confused with getIndex(), so emphasize the fact that it returns the data type ID of the object, and not its index. --- .../wrappers/WrappedWatchableObject.java | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/ProtocolLib/src/main/java/com/comphenix/protocol/wrappers/WrappedWatchableObject.java b/ProtocolLib/src/main/java/com/comphenix/protocol/wrappers/WrappedWatchableObject.java index 03ccbb74..028a226c 100644 --- a/ProtocolLib/src/main/java/com/comphenix/protocol/wrappers/WrappedWatchableObject.java +++ b/ProtocolLib/src/main/java/com/comphenix/protocol/wrappers/WrappedWatchableObject.java @@ -172,6 +172,43 @@ public class WrappedWatchableObject { /** * Retrieve the type ID of a watchable object. + *

+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Type IDData Type
0Byte
1Short
2Int
3Float
4{@link String}
5{@link org.bukkit.inventory.ItemStack ItemStack}
6*{@link com.comphenix.protocol.wrappers.ChunkPosition ChunkPosition}
* @return Type ID that identifies the type of the value. * @throws FieldAccessException Reflection failed. */ @@ -181,6 +218,7 @@ public class WrappedWatchableObject { /** * Set the type ID of a watchable object. + * @see {@link #getTypeID()} for more information. * @param id - the new ID. * @throws FieldAccessException Reflection failed. */