public void activate(Robot paramRobot, int paramInt) {
    if (this.clearAnimations != null)
    {
      if (!this.clear)
      {
        this.whichAnimation += 1;
        if (this.whichAnimation < this.clearAnimations.length)
        {
          ImageComponent[] arrayOfImageComponent = getImageComponents();

          arrayOfImageComponent[0] = this.clearAnimations[this.whichAnimation];

          setImages(arrayOfImageComponent);
          this.active = true;
          if (this.whichAnimation == this.clearAnimations.length - 1) {
            this.clear = true;

            return;
          }

        }

      }

    }
    else
    {
      this.clear = true;
    }
  }