MFF

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

    Crash a cause des creative tabs

    Planifier Épinglé Verrouillé Déplacé Résolu 1.7.x
    1.7.2
    18 Messages 7 Publieurs 10.6k 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.
    • robin4002R Hors-ligne
      robin4002 Moddeurs confirmés Rédacteurs Administrateurs
      dernière édition par

      Salut,
      L’item est null, envoie les logs du serveur.

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

        NullPointerException
        Hum à mon avis tu enregistre d’abord la créative tab puis l’item ce qui provoque le bug
        Si ce n’es pas ça envoie ta classe principale ^^

        Edit : Dépasser par robin 😛

        ^^

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

          @‘robin4002’:

          Salut,
          L’item est null, envoie les logs du serveur.

          Je n’ai pas mis d’item encore dans la creative tab
          et ça ne fait pas crach mon serveur mais mon client.

          
          –-- Minecraft Crash Report ----
          // Ooh. Shiny.
          
          Time: 19/06/14 14:52
          Description: Rendering item
          
          java.lang.NullPointerException: Rendering item
          at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:231)
          at net.minecraft.client.renderer.entity.RenderItem.renderItemIntoGUI(RenderItem.java:406)
          at net.minecraft.client.renderer.entity.RenderItem.func_82406_b(RenderItem.java:548)
          at net.minecraft.client.gui.inventory.GuiContainerCreative.func_147051_a(GuiContainerCreative.java:940)
          at net.minecraft.client.gui.inventory.GuiContainerCreative.func_146976_a(GuiContainerCreative.java:771)
          at net.minecraft.client.gui.inventory.GuiContainer.func_73863_a(GuiContainer.java:89)
          at net.minecraft.client.renderer.InventoryEffectRenderer.func_73863_a(SourceFile:30)
          at net.minecraft.client.gui.inventory.GuiContainerCreative.func_73863_a(GuiContainerCreative.java:649)
          at net.minecraft.client.renderer.EntityRenderer.func_78480_b(EntityRenderer.java:1343)
          at sushen.ieioa.func_78480_b(Unknown Source)
          at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:981)
          at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:870)
          at net.minecraft.client.main.Main.main(SourceFile:103)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
          at net.minecraft.launchwrapper.Launch.launch(Launch.java:134)
          at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
          
          A detailed walkthrough of the error, its code path and all known details is as follows:
          ---------------------------------------------------------------------------------------
          
          -- Head --
          Stacktrace:
          at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:231)
          at net.minecraft.client.renderer.entity.RenderItem.renderItemIntoGUI(RenderItem.java:406)
          
          -- Item being rendered --
          Details:
          Item Type: null
          Item Aux: ~~ERROR~~ NullPointerException: null
          Item NBT: null
          Item Foil: ~~ERROR~~ NullPointerException: null
          Stacktrace:
          at net.minecraft.client.renderer.entity.RenderItem.func_82406_b(RenderItem.java:548)
          at net.minecraft.client.gui.inventory.GuiContainerCreative.func_147051_a(GuiContainerCreative.java:940)
          at net.minecraft.client.gui.inventory.GuiContainerCreative.func_146976_a(GuiContainerCreative.java:771)
          at net.minecraft.client.gui.inventory.GuiContainer.func_73863_a(GuiContainer.java:89)
          at net.minecraft.client.renderer.InventoryEffectRenderer.func_73863_a(SourceFile:30)
          at net.minecraft.client.gui.inventory.GuiContainerCreative.func_73863_a(GuiContainerCreative.java:649)
          
          -- Screen render details --
          Details:
          Screen name: net.minecraft.client.gui.inventory.GuiContainerCreative
          Mouse location: Scaled: (297, 19). Absolute: (594, 441)
          Screen size: Scaled: (427, 240). Absolute: (854, 480). Scale factor of 2
          Stacktrace:
          at net.minecraft.client.renderer.EntityRenderer.func_78480_b(EntityRenderer.java:1343)
          
          -- Affected level --
          Details:
          Level name: MpServer
          All players: 1 total; [EntityClientPlayerMP['azatom'/1582, l='MpServer', x=-1228,96, y=74,62, z=-291,21]]
          Chunk stats: MultiplayerChunkCache: 292, 292
          Level seed: 0
          Level generator: ID 00 - default, ver 1\. Features enabled: false
          Level generator options:
          Level spawn location: World: (897,105,1210), Chunk: (at 1,6,10 in 56,75; contains blocks 896,0,1200 to 911,255,1215), Region: (1,2; contains chunks 32,64 to 63,95, blocks 512,0,1024 to 1023,255,1535)
          Level time: 148463478 game time, 160248139 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: survival (ID 0). Hardcore: false. Cheats: false
          Forced entities: 42 total; [EntityBat['Bat'/5498, l='MpServer', x=-1245,78, y=36,82, z=-298,72], EntityBat['Bat'/5494, l='MpServer', x=-1247,41, y=42,65, z=-302,00], EntityBat['Bat'/5495, l='MpServer', x=-1264,25, y=45,96, z=-297,69], EntityZombie['Zombie'/5486, l='MpServer', x=-1248,50, y=28,00, z=-308,50], EntityCreeper['Creeper'/5375, l='MpServer', x=-1273,50, y=42,50, z=-305,06], EntityCreeper['Creeper'/5609, l='MpServer', x=-1206,50, y=34,00, z=-339,50], EntityCreeper['Creeper'/5055, l='MpServer', x=-1243,50, y=72,00, z=-247,50], EntityCreeper['Creeper'/5455, l='MpServer', x=-1276,50, y=44,00, z=-335,50], EntityCreeper['Creeper'/5454, l='MpServer', x=-1274,50, y=44,00, z=-333,50], EntityCreeper['Creeper'/5571, l='MpServer', x=-1256,50, y=51,00, z=-312,50], EntityClientPlayerMP['azatom'/1582, l='MpServer', x=-1228,96, y=74,62, z=-291,21], EntitySkeleton['Skeleton'/5181, l='MpServer', x=-1273,50, y=72,00, z=-266,50], EntityWitherSkull['entity.WitherSkull.name'/4577, l='MpServer', x=-1259,25, y=133,28, z=-239,56], EntityZombie['Zombie'/5550, l='MpServer', x=-1196,50, y=15,00, z=-332,50], EntityWitherSkull['entity.WitherSkull.name'/4575, l='MpServer', x=-1222,72, y=124,66, z=-247,81], EntityHorse['§9Passe cette §4Porte §9pour commencer ton §aAventure §9!'/4574, l='MpServer', x=-1222,72, y=124,89, z=-247,81], EntityWitherSkull['entity.WitherSkull.name'/4573, l='MpServer', x=-1222,72, y=124,91, z=-247,81], EntitySkeleton['Skeleton'/5401, l='MpServer', x=-1275,50, y=42,00, z=-312,50], EntityHorse['§9Et bienvenue sur §4Emergia §9!'/4572, l='MpServer', x=-1222,72, y=125,14, z=-247,81], EntityWitherSkull['entity.WitherSkull.name'/4571, l='MpServer', x=-1222,72, y=125,16, z=-247,81], EntityHorse['§9Salut a toi jeune voyageur !'/4570, l='MpServer', x=-1222,72, y=125,39, z=-247,81], EntityWitherSkull['entity.WitherSkull.name'/4569, l='MpServer', x=-1224,94, y=125,50, z=-263,69], EntityHorse['§9Des §alivres §9: a la §4Bibliothèque'/4568, l='MpServer', x=-1224,94, y=125,73, z=-263,69], EntitySkeleton['Skeleton'/5394, l='MpServer', x=-1272,50, y=42,00, z=-308,50], EntityWitherSkull['entity.WitherSkull.name'/4567, l='MpServer', x=-1224,94, y=125,75, z=-263,69], EntitySkeleton['Skeleton'/5395, l='MpServer', x=-1269,50, y=42,00, z=-313,50], EntityHorse['§9Des §aminerais §9: chez le §4Mineur'/4566, l='MpServer', x=-1224,94, y=125,98, z=-263,69], EntityWitherSkull['entity.WitherSkull.name'/4565, l='MpServer', x=-1224,94, y=126,00, z=-263,69], EntityHorse['§9De §al'équipement §9: chez le §4Forgeron'/4564, l='MpServer', x=-1224,94, y=126,23, z=-263,69], EntityWitherSkull['entity.WitherSkull.name'/4563, l='MpServer', x=-1224,94, y=126,25, z=-263,69], EntityHorse['§9De la §anourriture §9: chez le §4Boucher'/4562, l='MpServer', x=-1224,94, y=126,48, z=-263,69], EntityWitherSkull['entity.WitherSkull.name'/4561, l='MpServer', x=-1224,94, y=126,50, z=-263,69], EntityHorse['§9Tu peux acheter :'/4560, l='MpServer', x=-1224,94, y=126,73, z=-263,69], EntityHorse['§9Ce village est un village de tutoriel !'/4558, l='MpServer', x=-1223,19, y=125,42, z=-258,69], EntityWitherSkull['entity.WitherSkull.name'/4559, l='MpServer', x=-1223,19, y=125,19, z=-258,69], EntityHorse['§9Aller déposer tes §aitems §9a la §4banque'/4556, l='MpServer', x=-1233,66, y=128,27, z=-273,59], EntityWitherSkull['entity.WitherSkull.name'/4557, l='MpServer', x=-1233,66, y=128,03, z=-273,59], EntityHorse['§9Aller seller ton §acheval §9a §4l'écurie'/4554, l='MpServer', x=-1233,66, y=128,52, z=-273,59], EntityWitherSkull['entity.WitherSkull.name'/4555, l='MpServer', x=-1233,66, y=128,28, z=-273,59], EntityHorse['§9Tu peux aussi :'/4552, l='MpServer', x=-1233,66, y=128,77, z=-273,59], EntityWitherSkull['entity.WitherSkull.name'/4553, l='MpServer', x=-1233,66, y=128,53, z=-273,59], EntityCreeper['Creeper'/5514, l='MpServer', x=-1275,50, y=15,00, z=-303,50]]
          Retry entities: 0 total; []
          Server brand: mcpc,craftbukkit,fml,forge
          Server type: Non-integrated multiplayer server
          Stacktrace:
          at net.minecraft.client.multiplayer.WorldClient.func_72914_a(WorldClient.java:384)
          at net.minecraft.client.Minecraft.func_71396_d(Minecraft.java:2433)
          at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:891)
          at net.minecraft.client.main.Main.main(SourceFile:103)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
          at net.minecraft.launchwrapper.Launch.launch(Launch.java:134)
          at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
          
          – System Details --
          Details:
          Minecraft Version: 1.7.2
          Operating System: Windows 7 (amd64) version 6.1
          Java Version: 1.7.0_45, Oracle Corporation
          Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
          Memory: 167832976 bytes (160 MB) / 580386816 bytes (553 MB) up to 954728448 bytes (910 MB)
          JVM Flags: 2 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx1G
          AABB Pool Size: 1361 (76216 bytes; 0 MB) allocated, 1272 (71232 bytes; 0 MB) used
          IntCache: cache: 0, tcache: 0, allocated: 13, tallocated: 95
          FML: MCP v9.01-pre FML v7.2.116.1024 Minecraft Forge 10.12.0.1024 Optifine OptiFine_1.7.2_HD_U_C2 13 mods loaded, 13 mods active
          mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available
          FML{7.2.116.1024} [Forge Mod Loader] (forge-1.7.2-10.12.0.1024.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available
          Forge{10.12.0.1024} [Minecraft Forge] (forge-1.7.2-10.12.0.1024.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available
          arrowcam{1.1} [Arrow Camera] (1.7.2_arrowcam_v1.1.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available
          ss3dMinimap{0} [ss3dMinimap] (3DMinimapMod1.7.2.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available
          DamageIndicatorsMod{3.0.7} [Damage Indicators] ([1.7.2]DamageIndicatorsMod-3.0.7.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available
          Blocks3D{1.7.2.1} [3D Blocks Mod] (Blocks3DMod-1.7.2.1.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available
          CameraStudio{2.172} [Camera Studio] (CameraStudioV2.172(mc1.7.2).zip) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available
          MoCreatures{6.2.0.dev.R1} [DrZhark's Mo'Creatures Mod] (DrZharks MoCreatures Mod v6.2.0-DEV-R2.zip) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available
          examplemod{1.0} [examplemod] (Emergia.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available
          emergia{1.1} [Emergia Mod principal] (Emergia.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available
          TwilightForest{2.0.3} [The Twilight Forest] (twilightforest-1.7.2-2.0.3.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available
          weaponmod{1.7.2 v1.14.2} [Balkon's WeaponMod] (weaponmod-1.14.2.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available
          Launched Version: 1.7.2-Forge10.12.0.1024
          
          
          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

            Je peux avoir tout les codes liés à ta table créatif ?
            Et oui j’avais pas compris, je veux quand même les logs du serveurs.

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

              Ok bien entendu :

              
              package fr.emergia.EmergiaMod.common;
              
              import net.minecraft.creativetab.CreativeTabs;
              import net.minecraft.item.Item;
              
              public class EmergiaTab extends CreativeTabs
              {
              
              public EmergiaTab(String Crea)
              {
              super(Crea);
              // TODO Auto-generated constructor stub
              }
              
              @Override
              public Item getTabIconItem()
              {
              // TODO Auto-generated method stub
              return null;
              }
              
              }
              
              

              Et j’ai refais un test pour le serveur voila les logs :

              
              22:21:19] [Netty IO #0/INFO]: Client protocol version 1
              [22:21:19] [Netty IO #0/INFO]: Client attempting to join with 13 mods : Blocks3D@1.7.2.1,arrowcam@1.1,Forge@10.12.0.1024,weaponmod@1.7.2 v1.14.2,TwilightForest@2.0.3,emergia@1.1,mcp@8.09,FML@7.2.116.1024,examplemod@1.0,MoCreatures@6.2.0.dev.R1,ss3dMinimap@0,DamageIndicatorsMod@3.0.7,CameraStudio@2.172
              [22:21:19] [Netty IO #0/INFO]: Attempting connection with missing mods [] at CLIENT
              [22:21:19] [Server thread/INFO]: [Server thread] Server side modded connection established
              [22:21:19] [Server thread/INFO]: azatom[/88.136.115.18:57959] logged in with entity id 61 at ([emergia] -1369.8880960476595, 78.0, -564.8295252242273)
              [22:21:19] [Server thread/INFO]: There's no player by that name online.
              [22:21:22] [Server thread/INFO]: CONSOLE issued server command: /kick [22:21:19 INFO]: azatom
              [22:21:22] [Server thread/INFO]: Error: Player not found.
              [22:21:26] [Server thread/INFO]: [ChatEx] A new update is available! (1.0.11) current: 1.0.10
              [22:21:26] [Server thread/INFO]: [ChatEx] You can get it at: http://dev.bukkit.org/bukkit-plugins/chatex/
              [22:21:26] [Server thread/INFO]: azatom issued server command: /gm 1
              [22:21:30] [Server thread/INFO]: azatom issued server command: /ci
              [22:22:07] [Server thread/INFO]: [WorldEdit] Using inbuilt NmsBlock for this version.
              [22:30:43] [Server thread/INFO]: CONSOLE: Enabled level saving..
              [22:30:43] [Server thread/INFO]: CONSOLE: Forcing save..
              [22:30:43] [Server thread/INFO]: CONSOLE: Save complete.
              [22:40:43] [Server thread/INFO]: CONSOLE: Enabled level saving..
              [22:40:43] [Server thread/INFO]: CONSOLE: Forcing save..
              [22:40:44] [Server thread/INFO]: CONSOLE: Save complete.
              [22:45:23] [Server thread/INFO]: azatom lost connection: Internal Exception: java.io.IOException: Connexion ré-initialisée par le correspondant
              
              
              1 réponse Dernière réponse Répondre Citer 0
              • isadorI Hors-ligne
                isador Moddeurs confirmés Modérateurs
                dernière édition par

                fait plutot un:

                
                return new ItemStack(ModMain.tonItem);
                
                
                1 réponse Dernière réponse Répondre Citer 1
                • azatomA Hors-ligne
                  azatom
                  dernière édition par

                  Ne fonctionne pas 😕

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

                    Essaye :

                    @Override
                    public Item getTabIconItem()
                    {
                    // TODO Auto-generated method stub
                    return Blocks.stone;
                    }
                    

                    Par exemple

                    ^^

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

                      merci beaucoup ça marche :3 !

                      1 réponse Dernière réponse Répondre Citer 0
                      • Superloup10S Hors-ligne
                        Superloup10 Modérateurs
                        dernière édition par

                        @‘mindany2’:

                        Essaye :

                        @Override
                        public Item getTabIconItem()
                        {
                        // TODO Auto-generated method stub
                        return Blocks.stone;
                        }
                        

                        Par exemple

                        En 1.7, c’est :

                        @Override
                        public Item getTabIconItem()
                        {
                        // TODO Auto-generated method stub
                        return Item.getItemFromBlock(Blocks.stone); //Pour un Bloc
                        }
                        

                        Si vous souhaitez me faire un don, il vous suffit de cliquer sur le bouton situé en dessous.

                        Je suis un membre apprécié et joueur, j'ai déjà obtenu 17 points de réputation.

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

                          Ceci est dans le cas de block :

                          @Override
                          public Item getTabIconItem()
                          {
                          // TODO Auto-generated method stub
                          return Blocks.stone;
                          }
                          

                          Mais tu peux utiliser ceci dans le cas d’items :

                          @Override
                          public Item getTabIconItem()
                          {
                          // TODO Auto-generated method stub
                          return Items.redstone;
                          }
                          
                          1 réponse Dernière réponse Répondre Citer 0
                          • Superloup10S Hors-ligne
                            Superloup10 Modérateurs
                            dernière édition par

                            Pour un item, c’est correct, mais pour le bloc, tu as tord. (cf : https://github.com/FFMT/ModTutoriel/blob/master/tutoriel/common/TutorialCreativeTabs.java#L13-L17 )

                            Si vous souhaitez me faire un don, il vous suffit de cliquer sur le bouton situé en dessous.

                            Je suis un membre apprécié et joueur, j'ai déjà obtenu 17 points de réputation.

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

                              En faite j’ai juste fait un copier/coller de ce qui avait été dit et dont la réponse est “merci beaucoup ça marche” :
                              @‘mindany2’:

                              Essaye :

                              @Override
                              public Item getTabIconItem()
                              {
                              // TODO Auto-generated method stub
                              return Blocks.stone;
                              }
                              

                              Par exemple

                              @‘azatom’:

                              merci beaucoup ça marche :3 !

                              Sinon oui je savais que pour le bloc le code correct serai, j’avais pas vu ta réponse sur ce sujet :
                              @‘Superloup10’:

                              En 1.7, c’est :

                              @Override
                              public Item getTabIconItem()
                              {
                              // TODO Auto-generated method stub
                              return Item.getItemFromBlock(Blocks.stone); //Pour un Bloc
                              }
                              

                              Mais visiblement le code de “mindany2” fonctionnerai, après je ne l’est pas essayé car je suis au boulot.

                              1 réponse Dernière réponse Répondre Citer 0
                              • kevin_68K Hors-ligne
                                kevin_68 Moddeurs confirmés
                                dernière édition par

                                Je confirme, tout est dans le type de la méthode:
                                public Item getTabIconItem()

                                Donc ça doit return un Item


                                Mettez à jours vers la dernière version stable (1.8.9 voir même…

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

                                  @‘BlackDrag00n’:

                                  Mais visiblement le code de “mindany2” fonctionnerai, après je ne l’est pas essayé car je suis au boulot.

                                  J’avais dis ça de tête je pense qu’après azatom à tout simplement vu que ça clochais et a rajouté “Item.getItemFromBlock()” (surtout que le bloc de stone était qu’un exemple il a très pu choisir une pomme en or :p)

                                  ^^

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

                                    @‘mindany2’:

                                    @‘BlackDrag00n’:

                                    Mais visiblement le code de “mindany2” fonctionnerai, après je ne l’est pas essayé car je suis au boulot.

                                    J’avais dis ça de tête je pense qu’après azatom à tout simplement vu que ça clochais et a rajouté “Item.getItemFromBlock()” (surtout que le bloc de stone était qu’un exemple il a très pu choisir une pomme en or :p)

                                    Bah en faite dans le cas d’un item tu as juste ça a faire :

                                    @Override
                                    public Item getTabIconItem()
                                    {
                                    // TODO Auto-generated method stub
                                    return Items.redstone;
                                    }
                                    

                                    Mais dans le cas d’un bloc faut faire ça, pour le “convertir” en 1 seul item :

                                    @Override
                                    public Item getTabIconItem()
                                    {
                                    // TODO Auto-generated method stub
                                    return Item.getItemFromBlock(Blocks.stone); //Pour un Bloc
                                    }
                                    
                                    1 réponse Dernière réponse Répondre Citer 0
                                    • mindany2M Hors-ligne
                                      mindany2
                                      dernière édition par

                                      Oui je sais ._. c’est pour ça qu’il a pu trouvé que mon code marchait sans pour autant mettre Item.getItemFromBlock() puisqu’il utilisait un item

                                      ^^

                                      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