Archiviert
13
0

Added some array methods too.

Dieser Commit ist enthalten in:
Kristian S. Stangeland 2012-11-13 16:43:52 +01:00
Ursprung 7f5288dea6
Commit 80b99fccd9

Datei anzeigen

@ -178,6 +178,22 @@ public class PacketContainer implements Serializable {
return structureModifier.withType(String.class); 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. * Retrieves a read/write structure for ItemStack.
* <p> * <p>