public void tick() {
    if (this.active)
    {
      if (!this.clearAnimations[this.whichAnimation].nextImage())
      {
        this.active = false;
        if (this.whichAnimation == this.clearAnimations.length - 1)
          this.clear = true;
      }
    }
  }