private static ITextComponent formatNBT(String[] str, int start) { TextComponentString chatcomponenttext = new TextComponentString(""); for (int j = start; j < str.length; ++j) { if (j > start) { chatcomponenttext.appendText(" "); } Object object = new TextComponentString(str[j]); chatcomponenttext.appendSibling((ITextComponent) object); } return chatcomponenttext; }
ITextComponent versionName = new TextComponentString(root.get("title").getAsString() + " " + fullVersion + " ").setStyle(new Style().setColor(TextFormatting.AQUA)); chat.appendSibling(versionName); chat.appendText(TextFormatting.WHITE + "["); style.setClickEvent(new ClickEvent(ClickEvent.Action.OPEN_URL, Reference.DOWNLOAD_URL)); style.setHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new TextComponentTranslation("info." + Reference.MOD_ID + ".updater.hover").setStyle(new Style().setColor(TextFormatting.YELLOW)))); style.setColor(TextFormatting.GREEN); chat.appendSibling(new TextComponentTranslation("info." + Reference.MOD_ID + ".updater.download")).setStyle(style); chat.appendText(TextFormatting.WHITE + "]"); player.sendMessage(chat); return true;
citizenDescription.appendText(citizen.getCustomNameTag()).appendText(": "); if (citizen.getCitizenColonyHandler().getColony() != null)
TextComponentString chantxt = new TextComponentString("Channel "); chantxt.appendSibling(coltxt); chantxt.appendText(" at " + bc.getX() + "/" + bc.getY() + "/" + bc.getZ()); player.sendMessage(chantxt); for (Node other : node(color).neighbors()) {