From 98a937738422a8decf8b757f16a58668617fb6d0 Mon Sep 17 00:00:00 2001 From: "Kristian S. Stangeland" Date: Tue, 4 Dec 2012 00:18:33 +0100 Subject: [PATCH] Add a convenience retriever for integer array fields. --- .../com/comphenix/protocol/events/PacketContainer.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ProtocolLib/src/main/java/com/comphenix/protocol/events/PacketContainer.java b/ProtocolLib/src/main/java/com/comphenix/protocol/events/PacketContainer.java index fc52b2bd..2ff67143 100644 --- a/ProtocolLib/src/main/java/com/comphenix/protocol/events/PacketContainer.java +++ b/ProtocolLib/src/main/java/com/comphenix/protocol/events/PacketContainer.java @@ -43,7 +43,6 @@ import com.comphenix.protocol.wrappers.BukkitConverters; import com.comphenix.protocol.wrappers.ChunkPosition; import com.comphenix.protocol.wrappers.WrappedDataWatcher; import com.comphenix.protocol.wrappers.WrappedWatchableObject; -import com.google.common.io.Closeables; import net.minecraft.server.Packet; @@ -196,6 +195,14 @@ public class PacketContainer implements Serializable { public StructureModifier getByteArrays() { return structureModifier.withType(byte[].class); } + + /** + * Retrieves a read/write structure for every int array field. + * @return A modifier for every int array field. + */ + public StructureModifier getIntegerArrays() { + return structureModifier.withType(int[].class); + } /** * Retrieves a read/write structure for ItemStack.