@Override
  public void g(double x, double y, double z) {
    if (this.m_remoteEntity == null) {
      super.g(x, y, z);
      return;
    }

    Vector vector = ((RemoteBaseEntity) this.m_remoteEntity).onPush(x, y, z);
    if (vector != null) super.g(vector.getX(), vector.getY(), vector.getZ());
  }
  @Override
  public void collide(Entity inEntity) {
    if (this.getRemoteEntity() == null) {
      super.collide(inEntity);
      return;
    }

    if (((RemoteBaseEntity) this.m_remoteEntity).onCollide(inEntity.getBukkitEntity()))
      super.collide(inEntity);
  }
  protected void cc() {
    class_ql var1 = this.a((class_qk) class_wl.d);
    if (this.cB()) {
      if (!this.j_() && !var1.a(c)) {
        var1.b(c);
      }

      --this.bs;
    } else if (var1.a(c)) {
      var1.c(c);
    }

    if (this.bt > 0 && --this.bt == 0) {
      this.a(
          "mob.zombiepig.zpigangry",
          this.bC() * 2.0F,
          ((this.random.nextFloat() - this.random.nextFloat()) * 0.2F + 1.0F) * 1.8F);
    }

    if (this.bs > 0 && this.bu != null && this.be() == null) {
      EntityHuman var2 = this.o.b(this.bu);
      this.b((EntityLiving) var2);
      this.aQ = var2;
      this.aR = this.bf();
    }

    super.cc();
  }
Example #4
0
 @Override
 protected void a(BlockPosition blockposition, Block block) {
   if (isCustomEntity) {
     return;
   } else {
     super.a(blockposition, block);
   }
 }
Example #5
0
 @Override
 protected String z() { // say
   if (isCustomEntity) {
     makeSound("mob.ghast.scream", 0.05f, 2f);
     return null;
   } else super.z();
   return "mob.zombie.say";
 }
 public void write(NBTTagCompound var1) {
   super.write(var1);
   var1.put("Anger", (short) this.bs);
   if (this.bu != null) {
     var1.put("HurtBy", this.bu.toString());
   } else {
     var1.put("HurtBy", "");
   }
 }
Example #7
0
 @Override
 public void m() {
   super.m();
   if (isCustomEntity) {
     fireTicks = 0;
     UtilParticles.display(
         Particles.FLAME, 0.2f, 0.2f, 0.2f, ((Zombie) getBukkitEntity()).getEyeLocation(), 3);
   }
 }
  @Override
  public void e(float inXMotion, float inZMotion) {
    float[] motion = new float[] {inXMotion, inZMotion, 0};
    if (this.m_remoteEntity.getMind().hasBehaviour("Ride"))
      ((RideBehavior) this.m_remoteEntity.getMind().getBehaviour("Ride")).ride(motion);

    super.e(motion[0], motion[1]);
    this.motY = motion[2];
  }
 public void func_370_e_() {
   field_9333_am = field_751_f == null ? 0.5F : 0.95F;
   if (field_4116_b > 0 && --field_4116_b == 0) {
     field_615_ag.func_623_a(
         this,
         "mob.zombiepig.zpigangry",
         func_6393_h() * 2.0F,
         ((field_9312_bd.nextFloat() - field_9312_bd.nextFloat()) * 0.2F + 1.0F) * 1.8F);
   }
   super.func_370_e_();
 }
Example #10
0
  public void h_() {
    this.bw = (this.target != null ? 0.95F : 0.5F);
    if ((this.soundDelay > 0) && (--this.soundDelay == 0)) {
      this.world.makeSound(
          this,
          "mob.zombiepig.zpigangry",
          aP() * 2.0F,
          ((this.random.nextFloat() - this.random.nextFloat()) * 0.2F + 1.0F) * 1.8F);
    }

    super.h_();
  }
 public void read(NBTTagCompound var1) {
   super.read(var1);
   this.bs = var1.getShort("Anger");
   String var2 = var1.getString("HurtBy");
   if (!var2.isEmpty()) {
     this.bu = UUID.fromString(var2);
     EntityHuman var3 = this.o.b(this.bu);
     this.b((EntityLiving) var3);
     if (var3 != null) {
       this.aQ = var3;
       this.aR = this.bf();
     }
   }
 }
 public void b(EntityLiving var1) {
   super.b((EntityLiving) var1);
   if (var1 != null) {
     this.bu = var1.aM();
   }
 }
 public void func_425_j() {
   super.func_425_j();
 }
 public void func_357_b(NBTTagCompound nbttagcompound) {
   super.func_357_b(nbttagcompound);
   field_4117_a = nbttagcompound.func_745_d("Anger");
 }
 public void func_352_a(NBTTagCompound nbttagcompound) {
   super.func_352_a(nbttagcompound);
   nbttagcompound.func_749_a("Anger", (short) field_4117_a);
 }
Example #16
0
 @Override
 protected String bp() { // Death
   if (isCustomEntity) return null;
   else super.z();
   return "mob.zombie.death";
 }
 @Override
 public void l_() {
   super.l_();
   if (this.getRemoteEntity() != null) this.getRemoteEntity().getMind().tick();
 }
 @Override
 public void die(DamageSource damagesource) {
   ((RemoteBaseEntity) this.m_remoteEntity).onDeath();
   super.die(damagesource);
 }
 public void t_() {
   super.t_();
 }
 protected void aY() {
   super.aY();
   this.a((class_qk) a).a(0.0D);
   this.a((class_qk) class_wl.d).a(0.23000000417232513D);
   this.a((class_qk) class_wl.e).a(5.0D);
 }
Example #21
0
 @Override
 protected String bo() { // Hurt
   if (isCustomEntity) return null;
   else super.z();
   return "mob.zombie.hurt";
 }
Example #22
0
 public void b(NBTTagCompound nbttagcompound) {
   super.b(nbttagcompound);
   nbttagcompound.setShort("Anger", (short) this.angerLevel);
 }
  @Override
  public void move(double d0, double d1, double d2) {
    if (this.m_remoteEntity != null && this.m_remoteEntity.isStationary()) return;

    super.move(d0, d1, d2);
  }
Example #24
0
 public void a(NBTTagCompound nbttagcompound) {
   super.a(nbttagcompound);
   this.angerLevel = nbttagcompound.getShort("Anger");
 }
 public class_qd a(class_on var1, class_qd var2) {
   super.a(var1, var2);
   this.n(false);
   return var2;
 }