Exemplo n.º 1
0
  private void a(int i, double d0, double d1, double d2, boolean flag) {
    this.world.a((EntityHuman) null, 1014, (int) this.locX, (int) this.locY, (int) this.locZ, 0);
    double d3 = this.r(i);
    double d4 = this.s(i);
    double d5 = this.t(i);
    double d6 = d0 - d3;
    double d7 = d1 - d4;
    double d8 = d2 - d5;
    EntityWitherSkull entitywitherskull = new EntityWitherSkull(this.world, this, d6, d7, d8);

    if (flag) {
      entitywitherskull.a(true);
    }

    entitywitherskull.locY = d4;
    entitywitherskull.locX = d3;
    entitywitherskull.locZ = d5;
    this.world.addEntity(entitywitherskull);
  }
Exemplo n.º 2
0
  private void a(int i, double d0, double d1, double d2, boolean flag) {
    this.world.a((EntityHuman) null, 1014, new BlockPosition(this), 0);
    double d3 = this.t(i);
    double d4 = this.u(i);
    double d5 = this.v(i);
    double d6 = d0 - d3;
    double d7 = d1 - d4;
    double d8 = d2 - d5;
    EntityWitherSkull entitywitherskull = new EntityWitherSkull(this.world, this, d6, d7, d8);

    if (flag) {
      entitywitherskull.setCharged(true);
    }

    entitywitherskull.locY = d4;
    entitywitherskull.locX = d3;
    entitywitherskull.locZ = d5;
    this.world.addEntity(entitywitherskull);
  }