}
int bankCount = save.getBankCount();
packet.addShort(bankCount);
for (int i = 0; i < bankCount; i++) {
BankItem item = save.getBankItem(i);
packet.addShort(item.getID());
packet.addInt(item.getAmount());
}
int friendCount = save.getFriendCount();
packet.addShort(friendCount);
for (int i = 0; i < friendCount; i++) {