Beispiel #1
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();
    }
  }
Beispiel #2
0
  public void c(NBTTagCompound nbttagcompound) {
    if (nbttagcompound.b("id", 8)) {
      this.d = Item.d(nbttagcompound.j("id"));
    } else {
      this.d = Item.b(nbttagcompound.e("id"));
    }

    this.b = nbttagcompound.d("Count");
    this.f = nbttagcompound.e("Damage");
    if (this.f < 0) {
      this.f = 0;
    }

    if (nbttagcompound.b("tag", 10)) {
      this.e = nbttagcompound.m("tag");
      if (this.d != null) {
        this.d.a(this.e);
      }
    }
  }
Beispiel #3
0
  public String q() {
    String s0 = this.b().a(this);

    if (this.e != null && this.e.b("display", 10)) {
      NBTTagCompound nbttagcompound = this.e.m("display");

      if (nbttagcompound.b("Name", 8)) {
        s0 = nbttagcompound.j("Name");
      }
    }

    return s0;
  }
Beispiel #4
0
  public void a(NBTTagCompound nbttagcompound) {
    super.a(nbttagcompound);
    if (nbttagcompound.n("IsBaby")) {
      this.l(true);
    }

    if (nbttagcompound.n("IsVillager")) {
      this.m(true);
    }

    if (nbttagcompound.b("ConversionTime", 99) && nbttagcompound.f("ConversionTime") > -1) {
      this.a(nbttagcompound.f("ConversionTime"));
    }

    this.a(nbttagcompound.n("CanBreakDoors"));
  }
Beispiel #5
0
 public void a(NBTTagCompound nbttagcompound) {
   super.a(nbttagcompound);
   if (nbttagcompound.b("ExplosionPower", 99)) {
     this.a = nbttagcompound.f("ExplosionPower");
   }
 }