@SideOnly(Side.CLIENT) public static void createTooltip(ItemStack stack,List<String> tooltip){
  if (isTeslaHolder(stack,EnumFacing.DOWN)) {
    final KeyBinding keyBindSneak=Minecraft.getMinecraft().gameSettings.keyBindSneak;
    final ITeslaHolder holder=TeslaUtils.getTeslaHolder(stack,EnumFacing.DOWN);
    if (GameSettings.isKeyDown(keyBindSneak)) {
      addHolderInfo(holder,tooltip);
      if (holder instanceof BaseTeslaContainer) {
        final BaseTeslaContainer container=(BaseTeslaContainer)holder;
        tooltip.add(ChatFormatting.DARK_AQUA + I18n.format("tooltip.tesla.input",Long.toString(container.getInputRate())));
        tooltip.add(ChatFormatting.DARK_AQUA + I18n.format("tooltip.tesla.output",Long.toString(container.getOutputRate())));
      }
    }
 else     tooltip.add(I18n.format("tooltip.tesla.showinfo",ChatFormatting.DARK_AQUA,keyBindSneak.getDisplayName(),ChatFormatting.GRAY));
  }
}

@ SideOnly ( Side . CLIENT ) public static void createTooltip ( ItemStack stack , List < String > tooltip ) { if ( isTeslaHolder ( stack , EnumFacing . DOWN ) ) { final KeyBinding keyBindSneak = Minecraft . getMinecraft ( ) . gameSettings . keyBindSneak ; final ITeslaHolder holder = TeslaUtils . getTeslaHolder ( stack , EnumFacing . DOWN ) ; if ( GameSettings . isKeyDown ( keyBindSneak ) ) { addHolderInfo ( holder , tooltip ) ; if ( holder instanceof BaseTeslaContainer ) { final BaseTeslaContainer container = ( BaseTeslaContainer ) holder ; tooltip . add ( ChatFormatting . DARK_AQUA + I18n . format ( "tooltip.tesla.input" , Long . toString ( container . getInputRate ( ) ) ) ) ; tooltip . add ( ChatFormatting . DARK_AQUA + I18n . format ( "tooltip.tesla.output" , Long . toString ( container . getOutputRate ( ) ) ) ) ; } } else tooltip . add ( I18n . format ( "tooltip.tesla.showinfo" , ChatFormatting . DARK_AQUA , keyBindSneak . getDisplayName ( ) , ChatFormatting . GRAY ) ) ; } }
generates tooltip data for an itemstack that has the iteslaholder interface . additionally , if the holder is a baseteslacontainer , input / output rates will be shown .
