MFF

    Minecraft Forge France
    • Récent
    • Mots-clés
    • Populaire
    • Utilisateurs
    • Groupes
    • Forge Events
      • Automatique
      • Foncé
      • Clair
    • S'inscrire
    • Se connecter

    Key Bug

    Planifier Épinglé Verrouillé Déplacé Résolu Autres
    3 Messages 2 Publieurs 835 Vues 1 Watching
    Charger plus de messages
    • Du plus ancien au plus récent
    • Du plus récent au plus ancien
    • Les plus votés
    Répondre
    • Répondre à l'aide d'un nouveau sujet
    Se connecter pour répondre
    Ce sujet a été supprimé. Seuls les utilisateurs avec les droits d'administration peuvent le voir.
    • O Hors-ligne
      Oguzcan13
      dernière édition par

      Bonsoir , j’ai mis ca dans mon client proxy et une erreur apparais dans KEY_T

      package craftyourliferp.fr.client.custommenu;
      
      import java.io.File;
      
      import cpw.mods.fml.client.registry.ClientRegistry;
      import cpw.mods.fml.common.FMLCommonHandler;
      import cpw.mods.fml.common.eventhandler.SubscribeEvent;
      import cpw.mods.fml.common.gameevent.InputEvent.KeyInputEvent;
      import net.java.games.input.Keyboard;
      import net.minecraft.client.Minecraft;
      import net.minecraft.client.settings.KeyBinding;
      import net.minecraft.util.ChatComponentText;
      import net.minecraftforge.common.MinecraftForge;
      
      public class ClientProxy extends TutorialCommon
      {
      
      private static KeyBinding keyBindCRYLRP;
          public ClientProxy()
      {
          FMLCommonHandler.instance().bus().register(this);
          keyBindCRYLRP = new KeyBinding("modtest.key", Keyboard.KEY_T, "key.categories.gameplay");
          ClientRegistry.registerKeyBinding(keyBindCRYLRP);
          }
          @SubscribeEvent
          public void onEvent(KeyInputEvent event)
          {
          if(keyBindCRYLRP.isPressed())
          {
          keyTestTyped();
          }
          }
      
          private void keyTestTyped()
          {
      
      1 réponse Dernière réponse Répondre Citer 0
      • robin4002R Hors-ligne
        robin4002 Moddeurs confirmés Rédacteurs Administrateurs
        dernière édition par

        Salut,
        Il faut importer le Keyboard de lwjgl et non de java.games

        1 réponse Dernière réponse Répondre Citer 0
        • O Hors-ligne
          Oguzcan13
          dernière édition par

          @‘robin4002’:

          Salut,
          Il faut importer le Keyboard de lwjgl et non de java.games

          Ok merci ^^

          1 réponse Dernière réponse Répondre Citer 0
          • 1 / 1
          • Premier message
            Dernier message
          Design by Woryk
          ContactMentions Légales

          MINECRAFT FORGE FRANCE © 2024

          Powered by NodeBB