@Override @SideOnly(Side.CLIENT) public void addInformation(ItemStack stack, @Nullable World worldIn, List<String> list, ITooltipFlag flag) { if (type.equals("raw")) list.add(TextFormatting.YELLOW + new TextComponentTranslation("tooltip.erebus.heals").getFormattedText()); else list.add(TextFormatting.YELLOW + new TextComponentTranslation("tooltip.erebus.feeds").getFormattedText()); }
@Override @SideOnly(Side.CLIENT) public void addInformation(ItemStack stack, @Nullable World worldIn, List<String> list, ITooltipFlag flag) { list.add(TextFormatting.YELLOW + new TextComponentTranslation("tooltip.erebus.warhammer_1").getFormattedText()); list.add(TextFormatting.YELLOW + new TextComponentTranslation("tooltip.erebus.warhammer_2").getFormattedText()); }
@Override @SideOnly(Side.CLIENT) public void addInformation(ItemStack stack, @Nullable World worldIn, List<String> list, ITooltipFlag flag) { list.add(TextFormatting.RED + new TextComponentTranslation("tooltip.erebus.planticide").getFormattedText()); }
@Override @SideOnly(Side.CLIENT) public void addInformation(ItemStack stack, @Nullable World worldIn, List<String> list, ITooltipFlag flag) { list.add(TextFormatting.YELLOW + new TextComponentTranslation("tooltip.erebus.bamboopipe").getFormattedText()); } };
@Override @SideOnly(Side.CLIENT) public void addInformation(ItemStack stack, @Nullable World worldIn, List<String> list, ITooltipFlag flag) { list.add(TextFormatting.YELLOW + new TextComponentTranslation("tooltip.erebus.healinghearts").getFormattedText()); }
@Override @SideOnly(Side.CLIENT) public void addInformation(ItemStack stack, @Nullable World worldIn, List<String> list, ITooltipFlag flag) { list.add(TextFormatting.YELLOW + new TextComponentTranslation("tooltip.erebus.webslinger").getFormattedText()); }
@Override @SideOnly(Side.CLIENT) public void addInformation(ItemStack stack, @Nullable World worldIn, List<String> list, ITooltipFlag flag) { list.add(TextFormatting.YELLOW + new TextComponentTranslation("tooltip.erebus.waterstriders").getFormattedText()); }
@Override @SideOnly(Side.CLIENT) public void addInformation(ItemStack stack, @Nullable World worldIn, List<String> list, ITooltipFlag flag) { list.add(TextFormatting.YELLOW + new TextComponentTranslation("tooltip.erebus.compost").getFormattedText()); }
@Override @SideOnly(Side.CLIENT) public void addInformation(ItemStack stack, @Nullable World worldIn, List<String> list, ITooltipFlag flag) { list.add(TextFormatting.YELLOW + new TextComponentTranslation("tooltip.erebus.mushhelm").getFormattedText()); }
@Override @SideOnly(Side.CLIENT) public void addInformation(ItemStack stack, @Nullable World worldIn, List<String> list, ITooltipFlag flag) { list.add(TextFormatting.YELLOW + new TextComponentTranslation("tooltip.erebus.jumpboots").getFormattedText()); }
@Override @SideOnly(Side.CLIENT) public void addInformation(ItemStack stack, @Nullable World worldIn, List<String> list, ITooltipFlag flag) { list.add(TextFormatting.YELLOW + new TextComponentTranslation("tooltip.erebus.glowgem").getFormattedText()); } };
@Override @SideOnly(Side.CLIENT) public void addInformation(ItemStack stack, @Nullable World worldIn, List<String> list, ITooltipFlag flag) { if (canFly()) { list.add(new TextComponentTranslation("tooltip.erebus.poweredglider").getFormattedText()); list.add(new TextComponentTranslation("tooltip.erebus.gliderpoweredkey").getFormattedText() + ": " + Keyboard.getKeyName(KeyBindingHandler.POWERED_GLIDE.getKeyCode())); } list.add(new TextComponentTranslation("tooltip.erebus.gliderglidekey").getFormattedText() + ": " + Keyboard.getKeyName(KeyBindingHandler.GLIDE.getKeyCode())); }
@Override @SideOnly(Side.CLIENT) public void addInformation(ItemStack stack, @Nullable World worldIn, List<String> list, ITooltipFlag flag) { if (hasTag(stack) && stack.getTagCompound().hasKey("homeX")) { list.add(TextFormatting.YELLOW + new TextComponentTranslation("tooltip.erebus.honeycombx", stack.getTagCompound().getInteger("homeX")).getFormattedText()); list.add(TextFormatting.YELLOW + new TextComponentTranslation("tooltip.erebus.honeycomby", stack.getTagCompound().getInteger("homeY")).getFormattedText()); list.add(TextFormatting.YELLOW + new TextComponentTranslation("tooltip.erebus.honeycombz", stack.getTagCompound().getInteger("homeZ")).getFormattedText()); } else { list.add(TextFormatting.YELLOW + new TextComponentTranslation("tooltip.erebus.beetamingamulet_1").getFormattedText()); list.add(TextFormatting.YELLOW + new TextComponentTranslation("tooltip.erebus.beetamingamulet_2").getFormattedText()); } }
@Override @SideOnly(Side.CLIENT) public void addInformation(ItemStack stack, @Nullable World worldIn, List<String> list, ITooltipFlag flag) { if(stack.getItemDamage() == EnumErebusMaterialsType.BAMBOO_PIPE_WRENCH.ordinal()) list.add(TextFormatting.YELLOW + new TextComponentTranslation("tooltip.erebus.bamboopipewrench").getFormattedText()); if(stack.getItemDamage() == EnumErebusMaterialsType.FORCE_KEY.ordinal()) list.add(TextFormatting.YELLOW + new TextComponentTranslation("tooltip.erebus.force_key").getFormattedText()); }
@Override @SideOnly(Side.CLIENT) public void addInformation(ItemStack stack, @Nullable World worldIn, List<String> list, ITooltipFlag flag) { if (hasTag(stack) && stack.getTagCompound().hasKey("dimID")) { list.add(TextFormatting.YELLOW + new TextComponentTranslation("tooltip.erebus.dimension", stack.getTagCompound().getInteger("dimID") + " " + stack.getTagCompound().getString("dimName")).getFormattedText()); list.add(TextFormatting.YELLOW + new TextComponentTranslation("tooltip.erebus.targetx", stack.getTagCompound().getInteger("homeX")).getFormattedText()); list.add(TextFormatting.YELLOW + new TextComponentTranslation("tooltip.erebus.targetz", stack.getTagCompound().getInteger("homeZ")).getFormattedText()); } else list.add(TextFormatting.YELLOW + new TextComponentTranslation("tooltip.erebus.homingbeecon").getFormattedText()); }
@Override @SideOnly(Side.CLIENT) public void addInformation(ItemStack stack, @Nullable World worldIn, List<String> list, ITooltipFlag flag) { if (hasTag(stack) && stack.getTagCompound().hasKey("dimID")) { list.add(TextFormatting.YELLOW + new TextComponentTranslation("tooltip.erebus.dimension", stack.getTagCompound().getInteger("dimID") + " " + stack.getTagCompound().getString("dimName")).getFormattedText()); list.add(TextFormatting.YELLOW + new TextComponentTranslation("tooltip.erebus.targetx", stack.getTagCompound().getInteger("homeX")).getFormattedText()); list.add(TextFormatting.YELLOW + new TextComponentTranslation("tooltip.erebus.targetz", stack.getTagCompound().getInteger("homeZ")).getFormattedText()); if(stack.getTagCompound().hasKey("deathTime")) list.add(TextFormatting.YELLOW + new TextComponentTranslation("tooltip.erebus.time_of_death", stack.getTagCompound().getString("deathTime")).getFormattedText()); } else list.add(TextFormatting.YELLOW + new TextComponentTranslation("tooltip.erebus.erebus").getFormattedText()); }
@Override protected void drawGuiContainerForegroundLayer(int mouseX, int mouseY) { int color = Utils.getColour(0, 0, 0); fontRenderer.drawString(I18n.format(new TextComponentTranslation("container.antInventory").getFormattedText()), xSize / 2 - fontRenderer.getStringWidth(I18n.format(new TextComponentTranslation("container.antInventory").getFormattedText())) / 2, 6, color); fontRenderer.drawString(I18n.format(new TextComponentTranslation("container.inventory").getFormattedText()), xSize - 170, ySize - 93, color); }
@Override protected void drawGuiContainerForegroundLayer(int mouseX, int mouseY) { int colour = Utils.getColour(0, 0, 0); fontRenderer.drawString(I18n.format(new TextComponentTranslation("container.composter").getFormattedText()), xSize / 2 - fontRenderer.getStringWidth(I18n.format(new TextComponentTranslation("container.composter").getFormattedText())) / 2, 6, colour); fontRenderer.drawString(I18n.format(new TextComponentTranslation("container.inventory").getFormattedText()), xSize - 167, ySize - 93, colour); fontRenderer.drawString(I18n.format(new TextComponentTranslation("container.composter").getFormattedText()), xSize / 2 - fontRenderer.getStringWidth(I18n.format(new TextComponentTranslation("container.composter").getFormattedText())) / 2 - 1, 5, Utils.getColour(255, 255, 255)); fontRenderer.drawString(I18n.format(new TextComponentTranslation("container.inventory").getFormattedText()), xSize - 168, ySize - 94, Utils.getColour(255, 255, 255)); }
@Override protected void drawGuiContainerForegroundLayer(int mouseX, int mouseY) { int color = Utils.getColour(255, 255, 255); fontRenderer.drawString(I18n.format(new TextComponentTranslation(furnace.getName()).getFormattedText()), xSize / 2 - fontRenderer.getStringWidth(I18n.format(new TextComponentTranslation(furnace.getName()).getFormattedText())) / 2 + 1, 7, Utils.getColour(0, 0, 0)); fontRenderer.drawString(I18n.format(new TextComponentTranslation("container.inventory").getFormattedText()), xSize / 2 - fontRenderer.getStringWidth(I18n.format(new TextComponentTranslation("container.inventory").getFormattedText())) / 2 + 56, ySize - 96 + 3, Utils.getColour(0, 0, 0)); fontRenderer.drawString(I18n.format(new TextComponentTranslation(furnace.getName()).getFormattedText()), xSize / 2 - fontRenderer.getStringWidth(I18n.format(new TextComponentTranslation(furnace.getName()).getFormattedText())) / 2, 6, color); fontRenderer.drawString(I18n.format(new TextComponentTranslation("container.inventory").getFormattedText()), xSize / 2 - fontRenderer.getStringWidth(I18n.format(new TextComponentTranslation("container.inventory").getFormattedText())) / 2 + 55, ySize - 96 + 2, color); }
@Override protected void drawGuiContainerForegroundLayer(int mouseX, int mouseY) { fontRenderer.drawString(I18n.format(new TextComponentTranslation("container.crafting").getFormattedText()), 29, 7, Utils.getColour(0, 0, 0)); fontRenderer.drawString(I18n.format(new TextComponentTranslation("container.inventory").getFormattedText()), 9, ySize - 96 + 3, Utils.getColour(0, 0, 0)); fontRenderer.drawString(I18n.format(new TextComponentTranslation("container.crafting").getFormattedText()), 28, 6, Utils.getColour(255, 255, 255)); fontRenderer.drawString(I18n.format(new TextComponentTranslation("container.inventory").getFormattedText()), 8, ySize - 96 + 2, Utils.getColour(255, 255, 255)); }