/** 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());
 }
  /** Reads the raw packet data from the data stream. */
  public void readPacketData(PacketBuffer buf) throws IOException {
    chunkX = buf.readInt();
    chunkZ = buf.readInt();
    // this.chunkPosCoord = new ChunkCoordIntPair(buf.readInt(), buf.readInt());
    this.changedBlocks = new S22PacketMultiBlockChange.BlockUpdateData[buf.readVarIntFromBuffer()];

    for (int i = 0; i < this.changedBlocks.length; ++i) {
      this.changedBlocks[i] =
          new S22PacketMultiBlockChange.BlockUpdateData(
              buf.readShort(), buf.readVarIntFromBuffer());
    }
  }
  /** Reads the raw packet data from the data stream. */
  public void readPacketData(PacketBuffer buf) throws IOException {
    int i = buf.readVarIntFromBuffer();
    this.field_148976_a = Maps.<String, Integer>newHashMap();

    for (int j = 0; j < i; ++j) {
      String statbase = (buf.readStringFromBuffer(32767));
      int k = buf.readVarIntFromBuffer();

      if (statbase != null) {
        this.field_148976_a.put(statbase, Integer.valueOf(k));
      }
    }
  }
 /** Reads the raw packet data from the data stream. */
 public void readPacketData(PacketBuffer buf) throws IOException {
   this.windowId = buf.readUnsignedByte();
   this.actionNumber = buf.readShort();
   this.field_148893_c = buf.readBoolean();
 }