Beispiel #1
0
  public void l_() {
    super.l_();
    if (this.fuse > 0) {
      --this.fuse;
      this.world.addParticle("smoke", this.locX, this.locY + 0.5D, this.locZ, 0.0D, 0.0D, 0.0D);
    } else if (this.fuse == 0) {
      this.c(this.motX * this.motX + this.motZ * this.motZ);
    }

    if (this.positionChanged) {
      double d0 = this.motX * this.motX + this.motZ * this.motZ;

      if (d0 >= 0.009999999776482582D) {
        this.c(d0);
      }
    }
  }