protected void attackEntity(Entity var1, float var2) {
      if(!this.worldObj.multiplayerWorld) {
         int var3 = this.getCreeperState();
         if((var3 > 0 || var2 >= 3.0F) && (var3 <= 0 || var2 >= 7.0F)) {
            this.setCreeperState(-1);
            --this.timeSinceIgnited;
            if(this.timeSinceIgnited < 0) {
               this.timeSinceIgnited = 0;
            }
         } else {
            if(this.timeSinceIgnited == 0) {
               this.worldObj.playSoundAtEntity(this, "random.fuse", 1.0F, 0.5F);
            }

            this.setCreeperState(1);
            ++this.timeSinceIgnited;
            if(this.timeSinceIgnited >= 30) {
               if(this.getPowered()) {
                  this.worldObj.createExplosion(this, this.posX, this.posY, this.posZ, 6.0F);
               } else {
                  this.worldObj.createExplosion(this, this.posX, this.posY, this.posZ, 3.0F);
               }

               this.setEntityDead();
            }

            this.hasAttacked = true;
         }

      }
   }