コード例 #1
0
ファイル: EntityZombie.java プロジェクト: ppypp/CanaryMod
  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"));
  }
コード例 #2
0
ファイル: EntityGhast.java プロジェクト: ppypp/CanaryMod
 public void a(NBTTagCompound nbttagcompound) {
   super.a(nbttagcompound);
   if (nbttagcompound.b("ExplosionPower", 99)) {
     this.a = nbttagcompound.f("ExplosionPower");
   }
 }