byte data[] = ((ByteArrayOutputStream)this.out).toByteArray();
ByteArrayOutputStream baos = new ByteArrayOutputStream();
BNetOutputStream sckout = new BNetOutputStream(baos);
try {
sckout.writeWord(data.length + 3);
sckout.writeByte(packetId);
sckout.write(data);
} catch(IOException e) {
e.printStackTrace();
System.exit(1);