MFF

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

    Encore problème onUpdate

    Planifier Épinglé Verrouillé Déplacé Résolu 1.7.x
    1.7.10
    104 Messages 8 Publieurs 18.1k 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.
    • SCAREXS Hors-ligne
      SCAREX
      dernière édition par

      Effectivement je comprends d’où vient le problème maintenant : à chaque fois que tu modifies les nbt de l’itemStack, son utilisation est reset, le seul moyen est donc de stocker autre pars ton timer, par exemple dans un ExtendedEntityProperties, ce qui résoudrai le problème.

      EDIT : petite question, pourquoi utiliser un timer sachant que tu en as déjà un dans les paramètres ?

      Site web contenant mes scripts : http://SCAREXgaming.github.io

      Pas de demandes de support par MP ni par skype SVP.
      Je n'accepte sur skype que l…

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

        @‘SCAREX’:

        Effectivement je comprends d’où vient le problème maintenant : à chaque fois que tu modifies les nbt de l’itemStack, son utilisation est reset, le seul moyen est donc de stocker autre pars ton timer, par exemple dans un ExtendedEntityProperties, ce qui résoudrai le problème.

        EDIT : petite question, pourquoi utiliser un timer sachant que tu en as déjà un dans les paramètres ?

        Pour l’extended je suis chaud par contre va falloir que je re regarde les extended ^^ .

        dans ton edit:

        C’est à dire je peux directement faire un timer sans la fonction onupdate ? j’ai pas bien compris x)

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

          Il veut dire que l’entity player possède déjà un timer qui compte depuis combien de temps il utilise l’objet.

          Si je vous ai aidé, n'oubliez pas d’être heureux, j'aiderai encore +

          AymericRed, moddeur expérimenté qui aide sur ce forum et qui peut accepter de faire un mod Forge rémunéré de temps en temps.

          Mes tutos : Table de craft, plugin NEI, plugin JEI, modifier l'overlay
          Je suis un membre apprécié et joueur, j'ai déjà obtenu 6 points de réputation.

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

            Pour l’EEP, voici qui t’aidera : https://www.minecraftforgefrance.fr/showthread.php?tid=905

            Bah tu incrémentes un timer lorsque l’item est utilisé mais minecraft incrémente déjà un timer (ton paramètre useRemaining), donc je vois pas l’utilité de créer plusieurs timers

            Site web contenant mes scripts : http://SCAREXgaming.github.io

            Pas de demandes de support par MP ni par skype SVP.
            Je n'accepte sur skype que l…

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

              Re,
              Alors du coup j’ai fais l’extended
              voilà ma classe:

              
              public class ExtendedEntityPropTimer implements IExtendedEntityProperties {
              
              public final static String EXT_PROP_NAME = "ExtPropTimer";
              
              private final EntityPlayer player;
              
              public int timer;
              
              public ExtendedEntityPropTimer(EntityPlayer player) {
              this.player = player;
              this.timer = 0;
              }
              
              public static final void register(EntityPlayer player) {
              player.registerExtendedProperties(ExtendedEntityPropTimer.EXT_PROP_NAME,
              new ExtendedEntityPropTimer(player));
              }
              
              public static final ExtendedEntityPropTimer get(EntityPlayer player) {
              return (ExtendedEntityPropTimer) player.getExtendedProperties(EXT_PROP_NAME);
              }
              
              @Override
              public void saveNBTData(NBTTagCompound compound) {
              
              NBTTagCompound properties = new NBTTagCompound();
              
              properties.setInteger("Timer", this.timer);
              
              compound.setTag(EXT_PROP_NAME, properties);
              }
              
              @Override
              public void loadNBTData(NBTTagCompound compound) {
              NBTTagCompound properties = (NBTTagCompound) compound
              .getTag(EXT_PROP_NAME);
              properties.setInteger("Timer", this.timer);
              }
              
              public final void sync() {
              PacketTimer packetTimer = new PacketTimer(this.timer);
                        LegacyMod.network.sendToServer(packetTimer);
              
              if (!player.worldObj.isRemote) {
              EntityPlayerMP player1 = (EntityPlayerMP) player;
                                      //Ici, même chose que précédemment, sauf que le packet est envoyé au player.
              LegacyMod.network.sendTo(packetTimer, player1);
              }
              }
              
              private static String getSaveKey(EntityPlayer player) {
              return player.getDisplayName() + ":" + EXT_PROP_NAME;
              }
              
              public static void saveProxyData(EntityPlayer player) {
              ExtendedEntityPropTimer playerData = ExtendedEntityPropTimer.get(player);
              NBTTagCompound savedData = new NBTTagCompound();
              
              playerData.saveNBTData(savedData);
              CommonProxy.storeEntityData(getSaveKey(player), savedData);
              }
              
              public static void loadProxyData(EntityPlayer player) {
              ExtendedEntityPropTimer playerData = ExtendedEntityPropTimer.get(player);
              NBTTagCompound savedData = CommonProxy
              .getEntityData(getSaveKey(player));
              
              if (savedData != null) {
              playerData.loadNBTData(savedData);
              }
              playerData.sync();
              }
              
              @Override
              public void init(Entity entity, World world) {
              // TODO Auto-generated method stub
              
              }
              
              }
              
              

              Mon packet:

              
              public class PacketTimer implements IMessage{
              
              private int Timer;
              
              public PacketTimer()
              {
              
              }
              
              public PacketTimer(int timer)
              {
              this.Timer = timer;
              }
              
              @Override
              public void fromBytes(ByteBuf buf) 
              {
              this.Timer = buf.readInt();
              }
              
              @Override
              public void toBytes(ByteBuf buf) 
              {
              buf.writeInt(this.Timer);
              }
              
              public static class Handler implements IMessageHandler <packettimer, imessage="">{
                 public IMessage onMessage(PacketTimer message, MessageContext ctx) {
                  ExtendedEntityPropTimer props = ExtendedEntityPropTimer
              .get(ctx.getServerHandler().playerEntity);
              props.timer = message.Timer;
                      return null;
                     }
                 }
              
              }
              
              

              register packet:

                      network.registerMessage(PacketTimer.Handler.class, PacketTimer.class, 4, Side.SERVER);
              

              Mais je suis bloqué car je vois pas trop comment faire pour le timer.
              Je dois rajouter des fonctions dans l’extended pour le timer ou pas ? je dois surement faire this.timer++ / – mais je vois pas du tout ou ^^ et esque je dois faire aussi des fonction settimer / gettimer etc…

              Merci :)</packettimer,>

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

                Maintenant que tu as ton EEP, il fait falloir utiliser les event forge, notamment le TickEvent.PlayerTickEvent.
                Attention toutefois, cet event est appelé deux fois : une fois au début du tick, et une fois à la fin du tick.
                Donc tu vérifies si la Phase de l’event est END, et tu appelles une méthode d’update que tu auras préalablement créer dans ton EEP.

                Comme ceci :

                   public void onTickEnd()
                    {
                       //Ton code
                    }
                
                   @SubscribeEvent
                    public void onPlayerTick(TickEvent.PlayerTickEvent event)
                    {
                        if(event.phase.equals(Phase.END))
                        {
                            ExtendedEntityPropTimer.get(event.player).onTickEnd();
                        }
                    }
                

                Fracture

                1 réponse Dernière réponse Répondre Citer 1
                • SCAREXS Hors-ligne
                  SCAREX
                  dernière édition par

                  Dans tous les cas je pense que créer un nouveau timer n’est pas forcément une bonne idée puisque tu as déjà un timer

                  Site web contenant mes scripts : http://SCAREXgaming.github.io

                  Pas de demandes de support par MP ni par skype SVP.
                  Je n'accepte sur skype que l…

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

                    @‘Eikins’:

                    Maintenant que tu as ton EEP, il fait falloir utiliser les event forge, notamment le TickEvent.PlayerTickEvent.
                    Attention toutefois, cet event est appelé deux fois : une fois au début du tick, et une fois à la fin du tick.
                    Donc tu vérifies si la Phase de l’event est END, et tu appelles une méthode d’update que tu auras préalablement créer dans ton EEP.

                    Comme ceci :

                       public void onTickEnd()
                        {
                           //Ton code
                        }
                    
                       @SubscribeEvent
                        public void onPlayerTick(TickEvent.PlayerTickEvent event)
                        {
                            if(event.phase.equals(Phase.END))
                            {
                                ExtendedEntityPropTimer.get(event.player).onTickEnd();
                            }
                        }
                    

                    D’acc merci, mais dans ontickend je fais spawn donc ma flèche c’est bien ça?

                    et dans l’event tick je dois pas mettre un temps ? je sais plus c’est quoi le code mais tu as du me comprendre x)

                    @SCAREX, 
                    En gros le EEP sert a rien c’est ça ? j’utilise [font=Ubuntu, sans-serifle paramètre useRemaining et c’est tout ?]

                    [font=Ubuntu, sans-serifSi oui je vais pas créer un eep pour rien alors ^^]

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

                      Normalement oui tu peux tuiliser directement useRemaining, si tu veux la vrai valeur tu fais this.getMaxItemUseDuration() - useRemaining et tu as un timer correct.

                      Après si tu veux utiliser l’EEP, tu gardes le code d’avant sauf qu’au lieu d’incrémenter le timer dans les tags de ton item, tu l’incrémente dans l’EEP et quand tu tires la flèches tu récupères la valeur

                      Site web contenant mes scripts : http://SCAREXgaming.github.io

                      Pas de demandes de support par MP ni par skype SVP.
                      Je n'accepte sur skype que l…

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

                        @‘floriangabet’:

                        D’acc merci, mais dans ontickend je fais spawn donc ma flèche c’est bien ça?

                        et dans l’event tick je dois pas mettre un temps ? je sais plus c’est quoi le code mais tu as du me comprendre x)

                        @SCAREX, 
                        En gros le EEP sert a rien c’est ça ? j’utilise [font=Ubuntu, sans-serifle paramètre useRemaining et c’est tout ?]

                        [font=Ubuntu, sans-serifSi oui je vais pas créer un eep pour rien alors ^^]

                        ça dépend du comment ut veux utiliser ton timer :
                        si ton timer permet (comme le pence SCAREX) de charger l’arc quand tu fait click droit, il ne sert à rien et tu peux faire comme SCAREX l’a dit.
                        si ton timer permet d’avoir un temps avant de pouvoir re-tirer un flèche de feux par exemple dans ce cas, je pence qu’il faut faire comme Eikins dit. (Ps : dans le onTickEnd, il faut que tu ajoute 1 à ton timer si il n’a pas attend sa valeur max. Et tu tire la flèche dans le packet, comme c’était avant, en vérifiant si le timer du joueur et bien à ça valeur max (ou min, ça dépend comment tu le voix))

                        1 réponse Dernière réponse Répondre Citer 1
                        • GabsG Hors-ligne
                          Gabs
                          dernière édition par

                          @‘LeBossMax2’:

                          si ton timer permet d’avoir un temps avant de pouvoir re-tirer un flèche de feux par exemple dans ce cas, je pence qu’il faut faire comme Eikins dit. (Ps : dans le onTickEnd, il faut que tu ajoute 1 à ton timer si il n’a pas attend sa valeur max. Et tu tire la flèche dans le packet, comme c’était avant, en vérifiant si le timer du joueur et bien à ça valeur max (ou min, ça dépend comment tu le voix))

                          C’est exactement se que je veux faire donc il faut que j’utilise l’eep .

                          Ok donc faut que je re créer le packetarrow x)

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

                            Non pas besoin vu que le onTickEnd est appelé des deux côtés. (Client et Serveur).
                            Je te conseille de décrémenter le cooldown, c’est plus simple pour la suite.

                            Créer une fonction pour set le timer.

                               public void setTimer(int cooldown)
                                {
                                    timer = cooldown;
                                }
                            

                            Et dans ton onTickEnd :

                               public void onTickEnd()
                                {
                                   if(timer > 0)
                                    {
                                        timer–;
                                    }
                                }
                            

                            Et après, tout simplement, tu demande si le joueur a fini le cooldown :

                               public boolean canUseFireArrow()
                                {
                                    return timer == 0;
                                }
                            

                            Ensuite tu retournes dans la classe de ton item, et tu fais simplement une condition qui vérifie si le joueur peut utiliser la flèche, et quand tu tire une flèche de feu, tu met ton timer à la valeur que tu veux (20 = 1s)
                            Laisse toutes ces méthodes des deux côtés, quand tu set le timer, ne vérifie pas le world.isRemote, comme ça les calculs sont aussi effectués par le client ce qui évite d’utiliser du réseaux.

                            Fracture

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

                              @‘Eikins’:

                              Non pas besoin vu que le onTickEnd est appelé des deux côtés. (Client et Serveur).
                              Je te conseille de décrémenter le cooldown, c’est plus simple pour la suite.

                              Créer une fonction pour set le timer.

                                 public void setTimer(int cooldown)
                                 {
                                     timer = cooldown;
                                 }
                              

                              Et dans ton onTickEnd :

                                 public void onTickEnd()
                                 {
                                     if(timer > 0)
                                     {
                                         timer–;
                                     }
                                 }
                              

                              Et après, tout simplement, tu demande si le joueur a fini le cooldown :

                                 public boolean canUseFireArrow()
                                 {
                                     return timer == 0;
                                 }
                              

                              Ensuite tu retournes dans la classe de ton item, et tu fais simplement une condition qui vérifie si le joueur peut utiliser la flèche, et quand tu tire une flèche de feu, tu met ton timer à la valeur que tu veux (20 = 1s)
                              Laisse toutes ces méthodes des deux côtés, quand tu set le timer, ne vérifie pas le world.isRemote, comme ça les calculs sont aussi effectués par le client ce qui évite d’utiliser du réseaux.

                              Ah mais ouais en plus c’est tout con omg x) merci vraiment j’essaye je te dis!!

                              edit pour le canusefirearrow j’ai mis <= car si le timer passe a -1 ou quoi je pourrais pas tiré la flèche 🙂

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

                                Oui comme tu veux, mais c’est pas très utile vu que le cooldown ne peut pas descendre en dessous de 0. Je connais ce sentiment 😛

                                Fracture

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

                                  @‘Eikins’:

                                  Oui comme tu veux, mais c’est pas très utile vu que le cooldown ne peut pas descendre en dessous de 0. Je connais ce sentiment 😛

                                  Aha ^^ 🙂

                                  Crash x) lorsque je me connecte en solo:

                                  
                                  [17:05:50] [main/INFO] [GradleStart]: username: floriangabet
                                  [17:05:50] [main/INFO] [GradleStart]: Extra: []
                                  [17:05:50] [main/INFO] [GradleStart]: Running with arguments: [–userProperties, {}, --assetsDir, C:/Users/Admin/.gradle/caches/minecraft/assets, --assetIndex, 1.7.10, --accessToken, {REDACTED}, --version, 1.7.10, --username, floriangabet, --tweakClass, cpw.mods.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
                                  [17:05:50] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker
                                  [17:05:50] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker
                                  [17:05:50] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
                                  [17:05:50] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker
                                  [17:05:50] [main/INFO] [FML]: Forge Mod Loader version 7.10.85.1291 for Minecraft 1.7.10 loading
                                  [17:05:50] [main/INFO] [FML]: Java is Java HotSpot(TM) Client VM, version 1.8.0_45, running on Windows 7:x86:6.1, installed at C:\Program Files (x86)\Java\jdk1.8.0_45\jre
                                  [17:05:50] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
                                  [17:05:50] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
                                  [17:05:50] [main/INFO] [GradleStart]: Injecting location in coremod cpw.mods.fml.relauncher.FMLCorePlugin
                                  [17:05:50] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
                                  [17:05:50] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
                                  [17:05:50] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker
                                  [17:05:50] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
                                  [17:05:50] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
                                  [17:05:50] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
                                  [17:05:50] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
                                  [17:05:50] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
                                  [17:05:50] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
                                  [17:05:50] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
                                  [17:05:50] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker
                                  [17:05:50] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
                                  [17:05:50] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.TerminalTweaker
                                  [17:05:50] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.TerminalTweaker
                                  [17:05:50] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
                                  [17:05:51] [main/INFO]: Setting user: floriangabet
                                  [17:05:51] [Client thread/INFO]: LWJGL Version: 2.9.1
                                  [17:05:51] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization
                                  [17:05:51] [Client thread/INFO] [FML]: MinecraftForge v10.13.2.1291 Initialized
                                  [17:05:52] [Client thread/INFO] [FML]: Replaced 183 ore recipies
                                  [17:05:52] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization
                                  [17:05:52] [Client thread/INFO] [FML]: Searching C:\Users\Admin\Documents\Modding\LegacyMod\eclipse\mods for mods
                                  [17:05:52] [Client thread/INFO] [lc]: Mod lc is missing the required element 'name'. Substituting lc
                                  [17:05:53] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load
                                  [17:05:53] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, lc] at CLIENT
                                  [17:05:53] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, lc] at SERVER
                                  [17:05:53] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:lc, [1.10] Firewolf v1.36.zip
                                  [17:05:53] [Client thread/INFO] [FML]: Processing ObjectHolder annotations
                                  [17:05:53] [Client thread/INFO] [FML]: Found 341 ObjectHolder annotations
                                  [17:05:53] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0
                                  [17:05:53] [Client thread/INFO] [FML]: Applying holder lookups
                                  [17:05:53] [Client thread/INFO] [FML]: Holder lookups applied
                                  [17:05:53] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
                                  [17:05:53] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem…
                                  [17:05:53] [Thread-6/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL
                                  [17:05:53] [Thread-6/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:     (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
                                  [17:05:53] [Thread-6/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.
                                  [17:05:54] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
                                  [17:05:54] [Sound Library Loader/INFO]: Sound engine started
                                  [17:05:56] [Client thread/INFO]: Created: 2048x2048 textures/blocks-atlas
                                  [17:05:56] [Client thread/ERROR]: Using missing texture, unable to load minecraft:textures/items/.png
                                  java.io.FileNotFoundException: minecraft:textures/items/.png
                                  at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:65) ~[FallbackResourceManager.class:?]
                                  at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[SimpleReloadableResourceManager.class:?]
                                  at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:126) [TextureMap.class:?]
                                  at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:91) [TextureMap.class:?]
                                  at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?]
                                  at net.minecraft.client.renderer.texture.TextureManager.loadTickableTexture(TextureManager.java:71) [TextureManager.class:?]
                                  at net.minecraft.client.renderer.texture.TextureManager.loadTextureMap(TextureManager.java:58) [TextureManager.class:?]
                                  at net.minecraft.client.Minecraft.startGame(Minecraft.java:583) [Minecraft.class:?]
                                  at net.minecraft.client.Minecraft.run(Minecraft.java:931) [Minecraft.class:?]
                                  at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?]
                                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_45]
                                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_45]
                                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_45]
                                  at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_45]
                                  at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?]
                                  at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?]
                                  at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?]
                                  at GradleStart.main(Unknown Source) [start/:?]
                                  [17:05:56] [Client thread/INFO]: Created: 512x256 textures/items-atlas
                                  [17:05:56] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods
                                  [17:05:56] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:lc, [1.10] Firewolf v1.36.zip
                                  [17:05:58] [Client thread/INFO]: Created: 2048x2048 textures/blocks-atlas
                                  [17:05:58] [Client thread/ERROR]: Using missing texture, unable to load minecraft:textures/items/.png
                                  java.io.FileNotFoundException: minecraft:textures/items/.png
                                  at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:65) ~[FallbackResourceManager.class:?]
                                  at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[SimpleReloadableResourceManager.class:?]
                                  at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:126) [TextureMap.class:?]
                                  at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:91) [TextureMap.class:?]
                                  at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?]
                                  at net.minecraft.client.renderer.texture.TextureManager.onResourceManagerReload(TextureManager.java:170) [TextureManager.class:?]
                                  at net.minecraft.client.resources.SimpleReloadableResourceManager.notifyReloadListeners(SimpleReloadableResourceManager.java:134) [SimpleReloadableResourceManager.class:?]
                                  at net.minecraft.client.resources.SimpleReloadableResourceManager.reloadResources(SimpleReloadableResourceManager.java:118) [SimpleReloadableResourceManager.class:?]
                                  at net.minecraft.client.Minecraft.refreshResources(Minecraft.java:643) [Minecraft.class:?]
                                  at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:303) [FMLClientHandler.class:?]
                                  at net.minecraft.client.Minecraft.startGame(Minecraft.java:586) [Minecraft.class:?]
                                  at net.minecraft.client.Minecraft.run(Minecraft.java:931) [Minecraft.class:?]
                                  at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?]
                                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_45]
                                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_45]
                                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_45]
                                  at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_45]
                                  at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?]
                                  at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?]
                                  at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?]
                                  at GradleStart.main(Unknown Source) [start/:?]
                                  [17:05:58] [Client thread/INFO]: Created: 512x256 textures/items-atlas
                                  [17:05:58] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
                                  [17:05:58] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: SoundSystem shutting down…
                                  [17:05:59] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:importantMessage:90]:     Author: Paul Lamb, www.paulscode.com
                                  [17:05:59] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
                                  [17:05:59] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
                                  [17:05:59] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem…
                                  [17:05:59] [Thread-8/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL
                                  [17:05:59] [Thread-8/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:     (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
                                  [17:05:59] [Thread-8/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.
                                  [17:05:59] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
                                  [17:05:59] [Sound Library Loader/INFO]: Sound engine started
                                  [17:06:08] [Server thread/INFO]: Starting integrated minecraft server version 1.7.10
                                  [17:06:08] [Server thread/INFO]: Generating keypair
                                  [17:06:08] [Server thread/INFO] [FML]: Injecting existing block and item data into this server instance
                                  [17:06:08] [Server thread/INFO] [FML]: Applying holder lookups
                                  [17:06:08] [Server thread/INFO] [FML]: Holder lookups applied
                                  [17:06:08] [Server thread/INFO] [FML]: Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@ddd539)
                                  [17:06:08] [Server thread/INFO] [FML]: Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@ddd539)
                                  [17:06:08] [Server thread/INFO] [FML]: Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@ddd539)
                                  [17:06:08] [Server thread/INFO]: Preparing start region for level 0
                                  [17:06:09] [Server thread/INFO]: Changing view distance to 8, from 10
                                  [17:06:09] [Netty Client IO #0/INFO] [FML]: Server protocol version 1
                                  [17:06:09] [Netty IO #1/INFO] [FML]: Client protocol version 1
                                  [17:06:09] [Netty IO #1/INFO] [FML]: Client attempting to join with 4 mods : FML@7.10.85.1291,lc@1.0,Forge@10.13.2.1291,mcp@9.05
                                  [17:06:09] [Netty IO #1/INFO] [FML]: Attempting connection with missing mods [] at CLIENT
                                  [17:06:09] [Netty Client IO #0/INFO] [FML]: Attempting connection with missing mods [] at SERVER
                                  [17:06:09] [Server thread/INFO] [FML]: [Server thread] Server side modded connection established
                                  [17:06:09] [Client thread/INFO] [FML]: [Client thread] Client side modded connection established
                                  [17:06:09] [Server thread/INFO]: floriangabet[local:E:de5eb7bb] logged in with entity id 318 at (-124.44666956204222, 82.60982619511093, -36.52332989261792)
                                  [17:06:09] [Server thread/INFO]: floriangabet a rejoint la partie
                                  [17:06:10] [Client thread/ERROR] [FML]: Exception caught during firing event cpw.mods.fml.common.gameevent.TickEvent$PlayerTickEvent@80234b:
                                  java.lang.NullPointerException
                                  at net.legacymod.events.Events.onPlayerTick(Events.java:112) ~[Events.class:?]
                                  at cpw.mods.fml.common.eventhandler.ASMEventHandler_12_Events_onPlayerTick_PlayerTickEvent.invoke(.dynamic) ~[?:?]
                                  at cpw.mods.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:54) ~[ASMEventHandler.class:?]
                                  at cpw.mods.fml.common.eventhandler.EventBus.post(EventBus.java:138) [EventBus.class:?]
                                  at cpw.mods.fml.common.FMLCommonHandler.onPlayerPostTick(FMLCommonHandler.java:350) [FMLCommonHandler.class:?]
                                  at net.minecraft.entity.player.EntityPlayer.onUpdate(EntityPlayer.java:392) [EntityPlayer.class:?]
                                  at net.minecraft.client.entity.EntityClientPlayerMP.onUpdate(EntityClientPlayerMP.java:96) [EntityClientPlayerMP.class:?]
                                  at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2298) [World.class:?]
                                  at net.minecraft.world.World.updateEntity(World.java:2258) [World.class:?]
                                  at net.minecraft.world.World.updateEntities(World.java:2108) [World.class:?]
                                  at net.minecraft.client.Minecraft.runTick(Minecraft.java:2086) [Minecraft.class:?]
                                  at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1028) [Minecraft.class:?]
                                  at net.minecraft.client.Minecraft.run(Minecraft.java:951) [Minecraft.class:?]
                                  at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?]
                                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_45]
                                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_45]
                                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_45]
                                  at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_45]
                                  at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?]
                                  at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?]
                                  at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?]
                                  at GradleStart.main(Unknown Source) [start/:?]
                                  [17:06:10] [Client thread/ERROR] [FML]: Index: 1 Listeners:
                                  [17:06:10] [Client thread/ERROR] [FML]: 0: NORMAL
                                  [17:06:10] [Client thread/ERROR] [FML]: 1: ASM: net.legacymod.events.Events@115d346 onPlayerTick(Lcpw/mods/fml/common/gameevent/TickEvent$PlayerTickEvent;)V
                                  [17:06:10] [Server thread/ERROR] [FML]: Exception caught during firing event cpw.mods.fml.common.gameevent.TickEvent$PlayerTickEvent@1c45aa9:
                                  java.lang.NullPointerException
                                  at net.legacymod.events.Events.onPlayerTick(Events.java:112) ~[Events.class:?]
                                  at cpw.mods.fml.common.eventhandler.ASMEventHandler_12_Events_onPlayerTick_PlayerTickEvent.invoke(.dynamic) ~[?:?]
                                  at cpw.mods.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:54) ~[ASMEventHandler.class:?]
                                  at cpw.mods.fml.common.eventhandler.EventBus.post(EventBus.java:138) [EventBus.class:?]
                                  at cpw.mods.fml.common.FMLCommonHandler.onPlayerPostTick(FMLCommonHandler.java:350) [FMLCommonHandler.class:?]
                                  at net.minecraft.entity.player.EntityPlayer.onUpdate(EntityPlayer.java:392) [EntityPlayer.class:?]
                                  at net.minecraft.entity.player.EntityPlayerMP.onUpdateEntity(EntityPlayerMP.java:330) [EntityPlayerMP.class:?]
                                  at net.minecraft.network.NetHandlerPlayServer.processPlayer(NetHandlerPlayServer.java:329) [NetHandlerPlayServer.class:?]
                                  at net.minecraft.network.play.client.C03PacketPlayer.processPacket(C03PacketPlayer.java:37) [C03PacketPlayer.class:?]
                                  at net.minecraft.network.play.client.C03PacketPlayer$C06PacketPlayerPosLook.processPacket(C03PacketPlayer.java:271) [C03PacketPlayer$C06PacketPlayerPosLook.class:?]
                                  at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:241) [NetworkManager.class:?]
                                  at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:182) [NetworkSystem.class:?]
                                  at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:726) [MinecraftServer.class:?]
                                  at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614) [MinecraftServer.class:?]
                                  at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118) [IntegratedServer.class:?]
                                  at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485) [MinecraftServer.class:?]
                                  at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752) [MinecraftServer$2.class:?]
                                  [17:06:10] [Server thread/ERROR] [FML]: Index: 1 Listeners:
                                  [17:06:10] [Server thread/ERROR] [FML]: 0: NORMAL
                                  [17:06:10] [Server thread/ERROR] [FML]: 1: ASM: net.legacymod.events.Events@115d346 onPlayerTick(Lcpw/mods/fml/common/gameevent/TickEvent$PlayerTickEvent;)V
                                  [17:06:10] [Server thread/ERROR]: Encountered an unexpected exception
                                  net.minecraft.util.ReportedException: Ticking player
                                  at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:198) ~[NetworkSystem.class:?]
                                  at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:726) ~[MinecraftServer.class:?]
                                  at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614) ~[MinecraftServer.class:?]
                                  at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118) ~[IntegratedServer.class:?]
                                  at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485) [MinecraftServer.class:?]
                                  at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752) [MinecraftServer$2.class:?]
                                  Caused by: java.lang.NullPointerException
                                  at net.legacymod.events.Events.onPlayerTick(Events.java:112) ~[Events.class:?]
                                  at cpw.mods.fml.common.eventhandler.ASMEventHandler_12_Events_onPlayerTick_PlayerTickEvent.invoke(.dynamic) ~[?:?]
                                  at cpw.mods.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:54) ~[ASMEventHandler.class:?]
                                  at cpw.mods.fml.common.eventhandler.EventBus.post(EventBus.java:138) ~[EventBus.class:?]
                                  at cpw.mods.fml.common.FMLCommonHandler.onPlayerPostTick(FMLCommonHandler.java:350) ~[FMLCommonHandler.class:?]
                                  at net.minecraft.entity.player.EntityPlayer.onUpdate(EntityPlayer.java:392) ~[EntityPlayer.class:?]
                                  at net.minecraft.entity.player.EntityPlayerMP.onUpdateEntity(EntityPlayerMP.java:330) ~[EntityPlayerMP.class:?]
                                  at net.minecraft.network.NetHandlerPlayServer.processPlayer(NetHandlerPlayServer.java:329) ~[NetHandlerPlayServer.class:?]
                                  at net.minecraft.network.play.client.C03PacketPlayer.processPacket(C03PacketPlayer.java:37) ~[C03PacketPlayer.class:?]
                                  at net.minecraft.network.play.client.C03PacketPlayer$C06PacketPlayerPosLook.processPacket(C03PacketPlayer.java:271) ~[C03PacketPlayer$C06PacketPlayerPosLook.class:?]
                                  at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:241) ~[NetworkManager.class:?]
                                  at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:182) ~[NetworkSystem.class:?]
                                  … 5 more
                                  [17:06:10] [Server thread/ERROR]: This crash report has been saved to: C:\Users\Admin\Documents\Modding\LegacyMod\eclipse\.\crash-reports\crash-2016-08-01_17.06.10-server.txt
                                  [17:06:10] [Server thread/INFO]: Stopping server
                                  [17:06:10] [Server thread/INFO]: Saving players
                                  [17:06:10] [Server thread/INFO]: Saving worlds
                                  [17:06:10] [Server thread/INFO]: Saving chunks for level 'New World'/Overworld
                                  [17:06:10] [Server thread/INFO]: Saving chunks for level 'New World'/Nether
                                  [17:06:10] [Server thread/INFO]: Saving chunks for level 'New World'/The End
                                  [17:06:10] [Server thread/INFO] [FML]: Unloading dimension 0
                                  [17:06:10] [Server thread/INFO] [FML]: Unloading dimension -1
                                  [17:06:10] [Server thread/INFO] [FML]: Unloading dimension 1
                                  [17:06:10] [Server thread/INFO] [FML]: Applying holder lookups
                                  [17:06:10] [Server thread/INFO] [FML]: Holder lookups applied
                                  [17:06:10] [Server thread/INFO] [FML]: The state engine was in incorrect state SERVER_STOPPING and forced into state SERVER_STOPPED. Errors may have been discarded.
                                  [17:06:10] [Client thread/FATAL]: Reported exception thrown!
                                  net.minecraft.util.ReportedException: Ticking entity
                                  at net.minecraft.world.World.updateEntities(World.java:2123) ~[World.class:?]
                                  at net.minecraft.client.Minecraft.runTick(Minecraft.java:2086) ~[Minecraft.class:?]
                                  at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1028) ~[Minecraft.class:?]
                                  at net.minecraft.client.Minecraft.run(Minecraft.java:951) [Minecraft.class:?]
                                  at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?]
                                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_45]
                                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_45]
                                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_45]
                                  at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_45]
                                  at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?]
                                  at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?]
                                  at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?]
                                  at GradleStart.main(Unknown Source) [start/:?]
                                  Caused by: java.lang.NullPointerException
                                  at net.legacymod.events.Events.onPlayerTick(Events.java:112) ~[Events.class:?]
                                  at cpw.mods.fml.common.eventhandler.ASMEventHandler_12_Events_onPlayerTick_PlayerTickEvent.invoke(.dynamic) ~[?:?]
                                  at cpw.mods.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:54) ~[ASMEventHandler.class:?]
                                  at cpw.mods.fml.common.eventhandler.EventBus.post(EventBus.java:138) ~[EventBus.class:?]
                                  at cpw.mods.fml.common.FMLCommonHandler.onPlayerPostTick(FMLCommonHandler.java:350) ~[FMLCommonHandler.class:?]
                                  at net.minecraft.entity.player.EntityPlayer.onUpdate(EntityPlayer.java:392) ~[EntityPlayer.class:?]
                                  at net.minecraft.client.entity.EntityClientPlayerMP.onUpdate(EntityClientPlayerMP.java:96) ~[EntityClientPlayerMP.class:?]
                                  at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2298) ~[World.class:?]
                                  at net.minecraft.world.World.updateEntity(World.java:2258) ~[World.class:?]
                                  at net.minecraft.world.World.updateEntities(World.java:2108) ~[World.class:?]
                                  … 12 more
                                  [17:06:10] [Client thread/INFO] [STDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:388]: –-- Minecraft Crash Report ----
                                  // On the bright side, I bought you a teddy bear!
                                  
                                  Time: 01/08/16 17:06
                                  Description: Ticking entity
                                  
                                  java.lang.NullPointerException: Ticking entity
                                  at net.legacymod.events.Events.onPlayerTick(Events.java:112)
                                  at cpw.mods.fml.common.eventhandler.ASMEventHandler_12_Events_onPlayerTick_PlayerTickEvent.invoke(.dynamic)
                                  at cpw.mods.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:54)
                                  at cpw.mods.fml.common.eventhandler.EventBus.post(EventBus.java:138)
                                  at cpw.mods.fml.common.FMLCommonHandler.onPlayerPostTick(FMLCommonHandler.java:350)
                                  at net.minecraft.entity.player.EntityPlayer.onUpdate(EntityPlayer.java:392)
                                  at net.minecraft.client.entity.EntityClientPlayerMP.onUpdate(EntityClientPlayerMP.java:96)
                                  at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2298)
                                  at net.minecraft.world.World.updateEntity(World.java:2258)
                                  at net.minecraft.world.World.updateEntities(World.java:2108)
                                  at net.minecraft.client.Minecraft.runTick(Minecraft.java:2086)
                                  at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1028)
                                  at net.minecraft.client.Minecraft.run(Minecraft.java:951)
                                  at net.minecraft.client.main.Main.main(Main.java:164)
                                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
                                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                                  at java.lang.reflect.Method.invoke(Method.java:497)
                                  at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
                                  at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
                                  at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
                                  at GradleStart.main(Unknown Source)
                                  
                                  A detailed walkthrough of the error, its code path and all known details is as follows:
                                  ---------------------------------------------------------------------------------------
                                  
                                  -- Head --
                                  Stacktrace:
                                  at net.legacymod.events.Events.onPlayerTick(Events.java:112)
                                  at cpw.mods.fml.common.eventhandler.ASMEventHandler_12_Events_onPlayerTick_PlayerTickEvent.invoke(.dynamic)
                                  at cpw.mods.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:54)
                                  at cpw.mods.fml.common.eventhandler.EventBus.post(EventBus.java:138)
                                  at cpw.mods.fml.common.FMLCommonHandler.onPlayerPostTick(FMLCommonHandler.java:350)
                                  at net.minecraft.entity.player.EntityPlayer.onUpdate(EntityPlayer.java:392)
                                  at net.minecraft.client.entity.EntityClientPlayerMP.onUpdate(EntityClientPlayerMP.java:96)
                                  at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2298)
                                  at net.minecraft.world.World.updateEntity(World.java:2258)
                                  
                                  -- Entity being ticked --
                                  Details:
                                  Entity Type: null (net.minecraft.client.entity.EntityClientPlayerMP)
                                  Entity ID: 318
                                  Entity Name: floriangabet
                                  Entity's Exact location: -124,45, 84,23, -36,52
                                  Entity's Block location: World: (-125,84,-37), Chunk: (at 3,5,11 in -8,-3; contains blocks -128,0,-48 to -113,255,-33), Region: (-1,-1; contains chunks -32,-32 to -1,-1, blocks -512,0,-512 to -1,255,-1)
                                  Entity's Momentum: 0,00, 0,00, 0,00
                                  Stacktrace:
                                  at net.minecraft.world.World.updateEntities(World.java:2108)
                                  
                                  -- Affected level --
                                  Details:
                                  Level name: MpServer
                                  All players: 1 total; [EntityClientPlayerMP['floriangabet'/318, l='MpServer', x=-124,45, y=84,23, z=-36,52]]
                                  Chunk stats: MultiplayerChunkCache: 0, 0
                                  Level seed: 0
                                  Level generator: ID 00 - default, ver 1\. Features enabled: false
                                  Level generator options: 
                                  Level spawn location: World: (-148,64,252), Chunk: (at 12,4,12 in -10,15; contains blocks -160,0,240 to -145,255,255), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)
                                  Level time: 3396886 game time, 1 day time
                                  Level dimension: 0
                                  Level storage version: 0x00000 - Unknown?
                                  Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)
                                  Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false
                                  Forced entities: 36 total; [EntitySheep['Mouton'/320, l='MpServer', x=-94,47, y=89,00, z=-48,31], EntityCow['Vache'/448, l='MpServer', x=-200,53, y=66,00, z=-74,94], EntityBat['Chauve-souris'/321, l='MpServer', x=-158,97, y=30,50, z=-65,16], EntitySquid['Poulpe'/322, l='MpServer', x=-175,03, y=58,09, z=-46,47], EntitySheep['Mouton'/323, l='MpServer', x=-171,81, y=63,00, z=-24,56], EntityChicken['Poule'/324, l='MpServer', x=-175,47, y=62,63, z=-21,16], EntitySquid['Poulpe'/325, l='MpServer', x=-171,28, y=56,94, z=-56,44], EntitySquid['Poulpe'/326, l='MpServer', x=-174,66, y=56,38, z=-50,50], EntitySheep['Mouton'/327, l='MpServer', x=-76,75, y=104,00, z=-52,16], EntityCow['Vache'/455, l='MpServer', x=-203,16, y=68,00, z=-101,84], EntityPig['Cochon'/328, l='MpServer', x=-152,88, y=63,00, z=-93,03], EntitySheep['Mouton'/329, l='MpServer', x=-154,84, y=64,00, z=-89,72], EntitySheep['Mouton'/330, l='MpServer', x=-85,47, y=87,00, z=-95,38], EntitySheep['Mouton'/331, l='MpServer', x=-88,75, y=89,00, z=-91,97], EntitySquid['Poulpe'/332, l='MpServer', x=-180,50, y=59,06, z=-44,34], EntitySquid['Poulpe'/333, l='MpServer', x=-176,69, y=56,38, z=-44,56], EntitySquid['Poulpe'/334, l='MpServer', x=-186,84, y=55,94, z=-23,59], EntitySquid['Poulpe'/335, l='MpServer', x=-178,50, y=58,31, z=-23,34], EntitySquid['Poulpe'/336, l='MpServer', x=-176,19, y=56,13, z=-27,09], EntitySquid['Poulpe'/337, l='MpServer', x=-178,81, y=56,00, z=-49,06], EntityZombie['Zombie'/338, l='MpServer', x=-168,50, y=38,00, z=-80,50], EntitySheep['Mouton'/339, l='MpServer', x=-160,66, y=63,00, z=-84,81], EntityChicken['Poule'/340, l='MpServer', x=-182,63, y=65,00, z=-68,41], EntityPig['Cochon'/404, l='MpServer', x=-130,16, y=71,00, z=42,59], EntityCow['Vache'/341, l='MpServer', x=-63,72, y=84,00, z=-6,56], EntityChicken['Poule'/342, l='MpServer', x=-174,59, y=62,50, z=24,13], EntitySheep['Mouton'/343, l='MpServer', x=-164,88, y=65,00, z=24,47], EntityChicken['Poule'/344, l='MpServer', x=-204,41, y=64,00, z=-45,41], EntitySheep['Mouton'/345, l='MpServer', x=-69,38, y=69,00, z=-99,19], EntitySheep['Mouton'/346, l='MpServer', x=-72,50, y=74,00, z=-100,34], EntitySheep['Mouton'/347, l='MpServer', x=-70,72, y=80,00, z=-99,47], EntityPig['Cochon'/475, l='MpServer', x=-78,03, y=69,00, z=43,47], EntityCow['Vache'/415, l='MpServer', x=-165,75, y=68,00, z=-114,97], EntitySquid['Poulpe'/497, l='MpServer', x=-185,72, y=59,34, z=25,75], EntitySquid['Poulpe'/498, l='MpServer', x=-187,31, y=56,41, z=27,84], EntityClientPlayerMP['floriangabet'/318, l='MpServer', x=-124,45, y=84,23, z=-36,52]]
                                  Retry entities: 0 total; []
                                  Server brand: fml,forge
                                  Server type: Integrated singleplayer server
                                  Stacktrace:
                                  at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:415)
                                  at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2555)
                                  at net.minecraft.client.Minecraft.run(Minecraft.java:973)
                                  at net.minecraft.client.main.Main.main(Main.java:164)
                                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
                                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                                  at java.lang.reflect.Method.invoke(Method.java:497)
                                  at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
                                  at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
                                  at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
                                  at GradleStart.main(Unknown Source)
                                  
                                  – System Details --
                                  Details:
                                  Minecraft Version: 1.7.10
                                  Operating System: Windows 7 (x86) version 6.1
                                  Java Version: 1.8.0_45, Oracle Corporation
                                  Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
                                  Memory: 714937136 bytes (681 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB)
                                  JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
                                  AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
                                  IntCache: cache: 0, tcache: 0, allocated: 13, tallocated: 95
                                  FML: MCP v9.05 FML v7.10.85.1291 Minecraft Forge 10.13.2.1291 4 mods loaded, 4 mods active
                                  mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
                                  FML{7.10.85.1291} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.2.1291.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
                                  Forge{10.13.2.1291} [Minecraft Forge] (forgeSrc-1.7.10-10.13.2.1291.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
                                  lc{1.0} [lc] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
                                  Launched Version: 1.7.10
                                  LWJGL: 2.9.1
                                  OpenGL: GeForce GTX 960/PCIe/SSE2 GL version 4.5.0 NVIDIA 368.39, NVIDIA Corporation
                                  GL Caps: Using GL 1.3 multitexturing.
                                  Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
                                  Anisotropic filtering is supported and maximum anisotropy is 16.
                                  Shaders are available because OpenGL 2.1 is supported.
                                  
                                  Is Modded: Definitely; Client brand changed to 'fml,forge'
                                  Type: Client (map_client.txt)
                                  Resource Packs: [[1.10] Firewolf v1.36.zip]
                                  Current Language: Français (France)
                                  Profiler Position: N/A (disabled)
                                  Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
                                  Anisotropic Filtering: Off (1)
                                  [17:06:10] [Client thread/INFO] [STDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:398]: #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\Admin\Documents\Modding\LegacyMod\eclipse\.\crash-reports\crash-2016-08-01_17.06.10-client.txt
                                  AL lib: (EE) alc_cleanup: 1 device not closed
                                  Java HotSpot(TM) Client VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
                                  
                                  

                                  event:

                                  
                                   @SubscribeEvent
                                     public void onPlayerTick(TickEvent.PlayerTickEvent event)
                                     {
                                         if(event.phase.equals(Phase.END)) 
                                         {
                                             ExtendedEntityPropTimer.get(event.player).onTickEnd();
                                         }
                                     }
                                  

                                  tick end et tout:

                                  
                                   public void onTickEnd() 
                                    {
                                        if(timer > 0)
                                        {
                                            timer–;
                                        }
                                    }
                                  public void setTimer(int cooldown)
                                    {
                                        timer = cooldown;
                                    }
                                  
                                  public boolean canUseFireArrow() 
                                    {
                                        return timer <= 0;
                                    }
                                  }
                                  
                                  
                                  1 réponse Dernière réponse Répondre Citer 0
                                  • EikinsE Hors-ligne
                                    Eikins
                                    dernière édition par

                                    Il y a une NPE à la ligne 112 de la classe Events, ça correspond à quelle ligne chez toi :

                                          if(event.phase.equals(Phase.END))
                                    

                                    ou

                                              ExtendedEntityPropTimer.get(event.player).onTickEnd();
                                    

                                    ?

                                    EDIT : Ca vient forcément du getter.

                                    Je crois que tu as oublié de register ton ExtendedEntityPropTimer dans les events. Regarde sur le Tutoriel partie EventHandler

                                    Fracture

                                    1 réponse Dernière réponse Répondre Citer 1
                                    • GabsG Hors-ligne
                                      Gabs
                                      dernière édition par

                                      @‘Eikins’:

                                      Il y a une NPE à la ligne 112 de la classe Events, ça correspond à quelle ligne chez toi :

                                            if(event.phase.equals(Phase.END))
                                      

                                      ou

                                                ExtendedEntityPropTimer.get(event.player).onTickEnd();
                                      

                                      ?

                                      EDIT : Ca vient forcément du getter.

                                      Je crois que tu as oublié de register ton ExtendedEntityPropTimer dans les events. Regarde sur le Tutoriel partie EventHandler

                                      xD exact super merci beaucoup 🙂

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

                                      MINECRAFT FORGE FRANCE © 2024

                                      Powered by NodeBB