Message message = null;
messageType = (int)data[off];
if(messageType == 0) message = new ServerBad(data, off + 1);
else if(messageType == 1) message = new ServerPlayerMuzzleFlash(data, off + 1);
else if(messageType == 2) message = new ServerMonsterMuzzleFlash(data, off + 1);
else if(messageType == 3) message = new ServerTemporaryEntity(data, off + 1);
else if(messageType == 4) message = new ServerLayout(data, off + 1);
else if(messageType == 5) message = new ServerInventory(data, off + 1);
else if(messageType == 6) message = new ServerNop();