Added a convenience method for boolean structure modifiers.

This commit is contained in:
Kristian S. Stangeland 2013-01-11 00:07:15 +01:00
parent 29709c4159
commit 17a5f59c0d

View File

@ -175,6 +175,14 @@ public class PacketContainer implements Serializable {
return structureModifier.withType(byte.class); return structureModifier.withType(byte.class);
} }
/**
* Retrieves a read/write structure for every boolean field.
* @return A modifier for every boolean field.
*/
public StructureModifier<Boolean> getBooleans() {
return structureModifier.withType(boolean.class);
}
/** /**
* Retrieves a read/write structure for every short field. * Retrieves a read/write structure for every short field.
* @return A modifier for every short field. * @return A modifier for every short field.