@Override
 public void writeData(DataOutputStream data) throws IOException {
   super.writeData(data);
   data.writeInt(item.itemID);
   data.writeInt(item.stackSize);
   data.writeInt(item.getItemDamage());
 }
 @Override
 public void readData(DataInputStream data) throws IOException {
   super.readData(data);
   int id = data.readInt();
   item = new ItemStack(id, data.readInt(), data.readInt());
 }