question: @ Override public boolean onItemUse ( ItemStack par1ItemStack , EntityPlayer par2EntityPlayer , World par3World , int x , int y , int z , int par7 , float par8 , float par9 , float par10 ) { if ( ! par3World . isRemote ) { TileEntity tileEntity = par3World . getTileEntity ( x , y , z ) ; if ( tileEntity != null ) { if ( tileEntity instanceof TileLauncherPrefab ) { TileLauncherPrefab missileLauncher = ( TileLauncherPrefab ) tileEntity ; if ( missileLauncher . getFrequency ( ) > 0 ) { setFrequency ( missileLauncher . getFrequency ( ) , par1ItemStack ) ; par2EntityPlayer . addChatMessage ( new ChatComponentText ( Reference . CHAT_DESC + EnumColor . GREY + " " + LangUtils . localize ( "message.designator.setFreq" ) + " " + EnumColor . DARK_GREY + getFrequency ( par1ItemStack ) ) ) ; } else { par2EntityPlayer . addChatMessage ( new ChatComponentText ( Reference . CHAT_DESC + EnumColor . GREY + " " + LangUtils . localize ( "message.designator.failFreq" ) ) ) ; } } } } return false ; }
target:  Callback for item usage. If the item does something special on right clicking, he will have one of those. Return True if something happen and false if it don't. This is for ITEMS, not BLOCKS ! 