/** Reads the raw packet data from the data stream. */
 public void readPacketData(PacketBuffer buf) throws IOException {
   byte b0 = buf.readByte();
   this.setInvulnerable((b0 & 1) > 0);
   this.setFlying((b0 & 2) > 0);
   this.setAllowFlying((b0 & 4) > 0);
   this.setCreativeMode((b0 & 8) > 0);
   this.setFlySpeed(buf.readFloat());
   this.setWalkSpeed(buf.readFloat());
 }