Guest User

Untitled

a guest
Jun 16th, 2014
214
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @Override
  2.     public void keyUp(EnumSet<TickType> types, KeyBinding kb, boolean tickEnd)
  3.     {
  4.  
  5.         EntityPlayer player = FMLClientHandler.instance().getClient().thePlayer;
  6.         Minecraft mc = Minecraft.getMinecraft();
  7.        
  8.         if(kb.keyCode == questKey.keyCode && mc.currentScreen == null && player.getCurrentEquippedItem().getItem()== CoeQuestMain.quest)//partie ADMIN
  9.         {
  10.             if(Minecraft.getMinecraft().getLanguageManager().getCurrentLanguage().getLanguageCode().equals("fr_FR"))
  11.             {
  12.                 FMLNetworkHandler.openGui(player, CoeQuestMain.instance, 4, player.worldObj, (int)Math.floor(player.posX), (int)Math.floor(player.posY), (int)Math.floor(player.posZ));
  13.             }
  14.             else
  15.             {
  16.                 FMLNetworkHandler.openGui(player, CoeQuestMain.instance, 2, player.worldObj, (int)Math.floor(player.posX), (int)Math.floor(player.posY), (int)Math.floor(player.posZ));
  17.             }
  18.         }
  19.        
  20.         else
  21.         {
  22.             if(Minecraft.getMinecraft().getLanguageManager().getCurrentLanguage().getLanguageCode().equals("fr_FR"))
  23.             {
  24.                 FMLNetworkHandler.openGui(player, CoeQuestMain.instance, 3, player.worldObj, (int)Math.floor(player.posX), (int)Math.floor(player.posY), (int)Math.floor(player.posZ));
  25.             }
  26.             else
  27.             {
  28.                 FMLNetworkHandler.openGui(player, CoeQuestMain.instance, 1, player.worldObj, (int)Math.floor(player.posX), (int)Math.floor(player.posY), (int)Math.floor(player.posZ));
  29.             }
  30.         }
  31. }
RAW Paste Data