public void read()
 {
     EID = socket.readInt();
     type = socket.readByte();
     Console.Out.WriteLine("Mob type: " + type);
     X = socket.readInt();
     Y = socket.readInt();
     Z = socket.readInt();
     yaw = socket.readByte();
     pitch = socket.readByte();
     headYaw = socket.readByte();
     metadata = new Metadata(socket);
     metadata.read();
 }
 public void read()
 {
     EID = socket.readInt();
     metadata = new Metadata(socket);
     metadata.read();
 }