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 void b(NBTTagList var1) { for (int var2 = 0; var2 < var1.getSize(); ++var2) { NBTTagCompound var3 = var1.getCompound(var2); class_awt var4 = (class_awt) class_awt.a.get(var3.getString("CriteriaName")); if (var4 != null) { String var5 = var3.getString("Name"); if (var5.length() > 16) { var5 = var5.substring(0, 16); } class_awj var6 = this.c.a(var5, var4); var6.a(var3.getString("DisplayName")); var6.a(class_awt.class_a_in_class_awt.a(var3.getString("RenderType"))); } } }
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; }