Beispiel #1
0
 protected void a(int i0) {
   this.bm = i0;
   this.H().b(14, Byte.valueOf((byte) 1));
   this.m(Potion.t.H);
   this.c(new PotionEffect(Potion.g.H, i0, Math.min(this.o.aa().a() - 1, 0)));
   this.o.a((Entity) this, (byte) 16);
 }
Beispiel #2
0
  public void l(boolean flag0) {
    this.H().b(12, Byte.valueOf((byte) (flag0 ? 1 : 0)));
    if (this.o != null && !this.o.D) {
      IAttributeInstance iattributeinstance = this.a(SharedMonsterAttributes.d);

      iattributeinstance.c(bk);
      if (flag0) {
        iattributeinstance.b(bk);
      }
    }

    this.n(flag0);
  }
Beispiel #3
0
  public void a(NBTTagCompound nbttagcompound) {
    super.a(nbttagcompound);
    this.ac.b(17, Byte.valueOf((byte) (nbttagcompound.n("powered") ? 1 : 0)));
    if (nbttagcompound.b("Fuse", 99)) {
      this.bk = nbttagcompound.e("Fuse");
    }

    if (nbttagcompound.b("ExplosionRadius", 99)) {
      this.bl = nbttagcompound.d("ExplosionRadius");
    }

    if (nbttagcompound.n("ignited")) {
      this.cm();
    }
  }
 @Override
 protected void entityInit() {
   super.entityInit();
   this.dataWatcher.addObject(16, Byte.valueOf((byte) -1));
 }
 public void setFuse(int f) {
   this.dataWatcher.updateObject(16, Byte.valueOf((byte) f));
 }
Beispiel #6
0
 protected void h() {
   super.h();
   this.ac.a(16, Byte.valueOf((byte) -1));
   this.ac.a(17, Byte.valueOf((byte) 0));
   this.ac.a(18, Byte.valueOf((byte) 0));
 }
Beispiel #7
0
 // CanaryMod: Set Charge to Creeper
 public void setCharged(boolean charged) {
   this.ac.b(17, Byte.valueOf(charged ? (byte) 1 : (byte) 0));
 }
Beispiel #8
0
 public void cm() {
   this.ac.b(18, Byte.valueOf((byte) 1));
 }
Beispiel #9
0
 public void a(EntityLightningBolt entitylightningbolt) {
   super.a(entitylightningbolt);
   this.ac.b(17, Byte.valueOf((byte) 1));
 }
Beispiel #10
0
 public void a(int i0) {
   this.ac.b(16, Byte.valueOf((byte) i0));
 }
Beispiel #11
0
 protected void h() {
   super.h();
   this.H().a(12, Byte.valueOf((byte) 0));
   this.H().a(13, Byte.valueOf((byte) 0));
   this.H().a(14, Byte.valueOf((byte) 0));
 }
Beispiel #12
0
 public void stopConversion() {
   this.H().b(12, Byte.valueOf((byte) 0));
   this.bm = -1;
 }
Beispiel #13
0
 public void m(boolean flag0) {
   this.H().b(13, Byte.valueOf((byte) (flag0 ? 1 : 0)));
 }