From 17a5f59c0d74cde25054adba803262bb53de1441 Mon Sep 17 00:00:00 2001 From: "Kristian S. Stangeland" Date: Fri, 11 Jan 2013 00:07:15 +0100 Subject: [PATCH] Added a convenience method for boolean structure modifiers. --- .../com/comphenix/protocol/events/PacketContainer.java | 8 ++++++++ 1 file changed, 8 insertions(+) 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 4c679cb3..93bc0d19 100644 --- a/ProtocolLib/src/main/java/com/comphenix/protocol/events/PacketContainer.java +++ b/ProtocolLib/src/main/java/com/comphenix/protocol/events/PacketContainer.java @@ -175,6 +175,14 @@ public class PacketContainer implements Serializable { return structureModifier.withType(byte.class); } + /** + * Retrieves a read/write structure for every boolean field. + * @return A modifier for every boolean field. + */ + public StructureModifier getBooleans() { + return structureModifier.withType(boolean.class); + } + /** * Retrieves a read/write structure for every short field. * @return A modifier for every short field.