/** 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 {
   this.windowId = buf.readUnsignedByte();
   this.actionNumber = buf.readShort();
   this.field_148893_c = buf.readBoolean();
 }