question: @ 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 ) ) ; } }
target:  Generates tooltip data for an ItemStack that has the ITeslaHolder interface. Additionally, if the holder is a BaseTeslaContainer, input/output rates will be shown.