public String getText() { this.g(); StringBuilder var1 = new StringBuilder(); Iterator var2 = this.b.iterator(); while (var2.hasNext()) { IChatBaseComponent var3 = (IChatBaseComponent) var2.next(); var1.append(var3.getText()); } return var1.toString(); }
public ChatMessage(String var1, Object... var2) { this.d = var1; this.e = var2; Object[] var3 = var2; int var4 = var2.length; for (int var5 = 0; var5 < var4; ++var5) { Object var6 = var3[var5]; if (var6 instanceof IChatBaseComponent) { ((IChatBaseComponent) var6).getChatModifier().setChatModifier(this.getChatModifier()); } } }
public ChatMessage h() { Object[] var1 = new Object[this.e.length]; for (int var2 = 0; var2 < this.e.length; ++var2) { if (this.e[var2] instanceof IChatBaseComponent) { var1[var2] = ((IChatBaseComponent) this.e[var2]).f(); } else { var1[var2] = this.e[var2]; } } ChatMessage var5 = new ChatMessage(this.d, var1); var5.setChatModifier(this.getChatModifier().m()); Iterator var3 = this.a().iterator(); while (var3.hasNext()) { IChatBaseComponent var4 = (IChatBaseComponent) var3.next(); var5.addSibling(var4.f()); } return var5; }
public IChatBaseComponent setChatModifier(ChatModifier var1) { super.setChatModifier(var1); Object[] var2 = this.e; int var3 = var2.length; for (int var4 = 0; var4 < var3; ++var4) { Object var5 = var2[var4]; if (var5 instanceof IChatBaseComponent) { ((IChatBaseComponent) var5).getChatModifier().setChatModifier(this.getChatModifier()); } } if (this.g > -1L) { Iterator var6 = this.b.iterator(); while (var6.hasNext()) { IChatBaseComponent var7 = (IChatBaseComponent) var6.next(); var7.getChatModifier().setChatModifier(var1); } } return this; }
private IChatBaseComponent a(int var1) { if (var1 >= this.e.length) { throw new class_fc(this, var1); } else { Object var2 = this.e[var1]; Object var3; if (var2 instanceof IChatBaseComponent) { var3 = (IChatBaseComponent) var2; } else { var3 = new ChatComponentText(var2 == null ? "null" : var2.toString()); ((IChatBaseComponent) var3).getChatModifier().setChatModifier(this.getChatModifier()); } return (IChatBaseComponent) var3; } }