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", "");
   }
 }
 public void b(NBTTagCompound var1) {
   if (this.c == null) {
     b.warn("Tried to save scoreboard without having a scoreboard...");
   } else {
     var1.put((String) "Objectives", (NBTTag) this.b());
     var1.put((String) "PlayerScores", (NBTTag) this.e());
     var1.put((String) "Teams", (NBTTag) this.a());
     this.d(var1);
   }
 }
  protected NBTTagList a() {
    NBTTagList var1 = new NBTTagList();
    Collection var2 = this.c.g();
    Iterator var3 = var2.iterator();

    while (var3.hasNext()) {
      class_awk var4 = (class_awk) var3.next();
      NBTTagCompound var5 = new NBTTagCompound();
      var5.put("Name", var4.b());
      var5.put("DisplayName", var4.c());
      if (var4.l().getId() >= 0) {
        var5.put("TeamColor", var4.l().getName());
      }

      var5.put("Prefix", var4.e());
      var5.put("Suffix", var4.f());
      var5.put("AllowFriendlyFire", var4.g());
      var5.put("SeeFriendlyInvisibles", var4.h());
      var5.put("NameTagVisibility", var4.i().e);
      var5.put("DeathMessageVisibility", var4.j().e);
      NBTTagList var6 = new NBTTagList();
      Iterator var7 = var4.d().iterator();

      while (var7.hasNext()) {
        String var8 = (String) var7.next();
        var6.add((NBTTag) (new NBTTagString(var8)));
      }

      var5.put((String) "Players", (NBTTag) var6);
      var1.add((NBTTag) var5);
    }

    return var1;
  }
  protected void d(NBTTagCompound var1) {
    NBTTagCompound var2 = new NBTTagCompound();
    boolean var3 = false;

    for (int var4 = 0; var4 < 19; ++var4) {
      class_awj var5 = this.c.a(var4);
      if (var5 != null) {
        var2.put("slot_" + var4, var5.b());
        var3 = true;
      }
    }

    if (var3) {
      var1.put((String) "DisplaySlots", (NBTTag) var2);
    }
  }
  protected NBTTagList e() {
    NBTTagList var1 = new NBTTagList();
    Collection var2 = this.c.e();
    Iterator var3 = var2.iterator();

    while (var3.hasNext()) {
      class_awl var4 = (class_awl) var3.next();
      if (var4.d() != null) {
        NBTTagCompound var5 = new NBTTagCompound();
        var5.put("Name", var4.e());
        var5.put("Objective", var4.d().b());
        var5.put("Score", var4.c());
        var5.put("Locked", var4.g());
        var1.add((NBTTag) var5);
      }
    }

    return var1;
  }
  protected NBTTagList b() {
    NBTTagList var1 = new NBTTagList();
    Collection var2 = this.c.c();
    Iterator var3 = var2.iterator();

    while (var3.hasNext()) {
      class_awj var4 = (class_awj) var3.next();
      if (var4.c() != null) {
        NBTTagCompound var5 = new NBTTagCompound();
        var5.put("Name", var4.b());
        var5.put("CriteriaName", var4.c().a());
        var5.put("DisplayName", var4.d());
        var5.put("RenderType", var4.e().a());
        var1.add((NBTTag) var5);
      }
    }

    return var1;
  }
  public NBTTagCompound a() {
    NBTTagCompound var1 = new NBTTagCompound();
    if (this.m != null) {
      var1.put("DragonUUID", this.m);
    }

    var1.put("DragonKilled", this.k);
    var1.put("PreviouslyKilled", this.l);
    NBTTagList var2 = new NBTTagList();
    Iterator var3 = this.e.iterator();

    while (var3.hasNext()) {
      int var4 = ((Integer) var3.next()).intValue();
      var2.add((NBTTag) (new NBTTagInt(var4)));
    }

    var1.put((String) "Gateways", (NBTTag) var2);
    return var1;
  }
  public static ItemStack a(ItemStack var0, class_acd var1) {
    MinecraftKey var2 = (MinecraftKey) class_acd.a.getKey(var1);
    if (var2 != null) {
      NBTTagCompound var3 = var0.hasTag() ? var0.getTag() : new NBTTagCompound();
      var3.put("Potion", var2.toString());
      var0.setTag(var3);
    }

    return var0;
  }
  public boolean a(class_yg var1, World var2) {
    this.a = null;
    int var3 = 0;
    int var4 = 0;
    int var5 = 0;
    int var6 = 0;
    int var7 = 0;
    int var8 = 0;

    for (int var9 = 0; var9 < var1.getSize(); ++var9) {
      ItemStack var10 = var1.getItem(var9);
      if (var10 != null) {
        if (var10.getItem() == Items.GUNPOWDER) {
          ++var4;
        } else if (var10.getItem() == Items.FIREWORK_CHARGE) {
          ++var6;
        } else if (var10.getItem() == Items.DYE) {
          ++var5;
        } else if (var10.getItem() == Items.PAPER) {
          ++var3;
        } else if (var10.getItem() == Items.GLOWSTONE_DUST) {
          ++var7;
        } else if (var10.getItem() == Items.DIAMOND) {
          ++var7;
        } else if (var10.getItem() == Items.FIRE_CHARGE) {
          ++var8;
        } else if (var10.getItem() == Items.FEATHER) {
          ++var8;
        } else if (var10.getItem() == Items.GOLD_NUGGEST) {
          ++var8;
        } else {
          if (var10.getItem() != Items.SKULL) {
            return false;
          }

          ++var8;
        }
      }
    }

    var7 += var5 + var8;
    if (var4 <= 3 && var3 <= 1) {
      NBTTagCompound var16;
      NBTTagCompound var19;
      if (var4 >= 1 && var3 == 1 && var7 == 0) {
        this.a = new ItemStack(Items.FIREWORKS);
        if (var6 > 0) {
          var16 = new NBTTagCompound();
          var19 = new NBTTagCompound();
          NBTTagList var25 = new NBTTagList();

          for (int var22 = 0; var22 < var1.getSize(); ++var22) {
            ItemStack var26 = var1.getItem(var22);
            if (var26 != null
                && var26.getItem() == Items.FIREWORK_CHARGE
                && var26.hasTag()
                && var26.getTag().hasOfType("Explosion", 10)) {
              var25.add((NBTTag) var26.getTag().getCompound("Explosion"));
            }
          }

          var19.put((String) "Explosions", (NBTTag) var25);
          var19.put("Flight", (byte) var4);
          var16.put((String) "Fireworks", (NBTTag) var19);
          this.a.setTag(var16);
        }

        return true;
      } else if (var4 == 1 && var3 == 0 && var6 == 0 && var5 > 0 && var8 <= 1) {
        this.a = new ItemStack(Items.FIREWORK_CHARGE);
        var16 = new NBTTagCompound();
        var19 = new NBTTagCompound();
        byte var23 = 0;
        ArrayList var12 = Lists.newArrayList();

        for (int var13 = 0; var13 < var1.getSize(); ++var13) {
          ItemStack var14 = var1.getItem(var13);
          if (var14 != null) {
            if (var14.getItem() == Items.DYE) {
              var12.add(Integer.valueOf(ItemDye.a[var14.i() & 15]));
            } else if (var14.getItem() == Items.GLOWSTONE_DUST) {
              var19.put("Flicker", true);
            } else if (var14.getItem() == Items.DIAMOND) {
              var19.put("Trail", true);
            } else if (var14.getItem() == Items.FIRE_CHARGE) {
              var23 = 1;
            } else if (var14.getItem() == Items.FEATHER) {
              var23 = 4;
            } else if (var14.getItem() == Items.GOLD_NUGGEST) {
              var23 = 2;
            } else if (var14.getItem() == Items.SKULL) {
              var23 = 3;
            }
          }
        }

        int[] var24 = new int[var12.size()];

        for (int var27 = 0; var27 < var24.length; ++var27) {
          var24[var27] = ((Integer) var12.get(var27)).intValue();
        }

        var19.put("Colors", var24);
        var19.put("Type", var23);
        var16.put((String) "Explosion", (NBTTag) var19);
        this.a.setTag(var16);
        return true;
      } else if (var4 == 0 && var3 == 0 && var6 == 1 && var5 > 0 && var5 == var7) {
        ArrayList var15 = Lists.newArrayList();

        for (int var17 = 0; var17 < var1.getSize(); ++var17) {
          ItemStack var11 = var1.getItem(var17);
          if (var11 != null) {
            if (var11.getItem() == Items.DYE) {
              var15.add(Integer.valueOf(ItemDye.a[var11.i() & 15]));
            } else if (var11.getItem() == Items.FIREWORK_CHARGE) {
              this.a = var11.clone();
              this.a.count = 1;
            }
          }
        }

        int[] var18 = new int[var15.size()];

        for (int var20 = 0; var20 < var18.length; ++var20) {
          var18[var20] = ((Integer) var15.get(var20)).intValue();
        }

        if (this.a != null && this.a.hasTag()) {
          NBTTagCompound var21 = this.a.getTag().getCompound("Explosion");
          if (var21 == null) {
            return false;
          } else {
            var21.put("FadeColors", var18);
            return true;
          }
        } else {
          return false;
        }
      } else {
        return false;
      }
    } else {
      return false;
    }
  }
 public void write(NBTTagCompound var1) {
   super.write(var1);
   var1.put("PlayerCreated", this.cC());
 }