@Override
  public void build(PacketInputStream input) throws IOException {
    this.window = input.readUnsignedByte();

    short length = input.readShort();
    this.stacks = new ItemStack[length];
    for (int i = 0; i < length; i++) {
      stacks[i] = input.readItemStack();
    }
  }
 @Override
 public void build(PacketInputStream input) throws IOException {
   super.build(input);
   this.yaw = (input.readByte() * 360) / 256D;
 }