@SideOnly(Side.CLIENT) @Override public void addInformation( ItemStack itemStack, EntityPlayer player, List list, boolean whatIsThis) { super.addInformation(itemStack, player, list, whatIsThis); if (Keyboard.isKeyDown(Keyboard.KEY_LSHIFT) || Keyboard.isKeyDown(Keyboard.KEY_RSHIFT)) { list.add(EnumChatFormatting.WHITE + "Make storage modules remotely available."); list.add(EnumChatFormatting.WHITE + "Requires energy to do this."); list.add(EnumChatFormatting.YELLOW + "Infusing bonus: reduced power consumption"); } else { list.add(EnumChatFormatting.WHITE + RFTools.SHIFT_MESSAGE); } }
@Override public void registerBlockIcons(IIconRegister iconRegister) { overlayIcon = iconRegister.registerIcon(RFTools.MODID + ":" + "modularStorageOverlay"); super.registerBlockIcons(iconRegister); }