Added some array methods too.

This commit is contained in:
Kristian S. Stangeland 2012-11-13 16:43:52 +01:00
parent 7f5288dea6
commit 80b99fccd9

View File

@ -178,6 +178,22 @@ public class PacketContainer implements Serializable {
return structureModifier.withType(String.class);
}
/**
* Retrieves a read/write structure for every String array field.
* @return A modifier for every String array field.
*/
public StructureModifier<String[]> getStringArrays() {
return structureModifier.withType(String[].class);
}
/**
* Retrieves a read/write structure for every byte array field.
* @return A modifier for every byte array field.
*/
public StructureModifier<byte[]> getByteArrays() {
return structureModifier.withType(byte[].class);
}
/**
* Retrieves a read/write structure for ItemStack.
* <p>