• S'inscrire
    • Se connecter
    • Recherche
    • Récent
    • Mots-clés
    • Populaire
    • Utilisateurs
    • Groupes

    Crash coffre

    Sans suite
    1.7.10
    3
    15
    2579
    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.
    • darkvince37
      darkvince37 dernière édition par

      Bonjour,

      Sa fait une journée que je cherche le probleme je suis sur que c’est un truc a la con.

      J’ai créer un coffre tous fonctionne jusque la sauf que quand je fait clique droit sa clash

      –-- Minecraft Crash Report ----
      // There are four lights!
      
      Time: 04/01/17 19:52
      Description: Ticking memory connection
      
      java.lang.ClassCastException: net.minecraft.tileentity.TileEntityChest cannot be cast to fr.darkvince.ultrav2.chest.TileEntityChestDiamond
      at fr.darkvince.proxy.GuiHandler.getServerGuiElement(GuiHandler.java:48)
      at cpw.mods.fml.common.network.NetworkRegistry.getRemoteGuiContainer(NetworkRegistry.java:243)
      at cpw.mods.fml.common.network.internal.FMLNetworkHandler.openGui(FMLNetworkHandler.java:75)
      at net.minecraft.entity.player.EntityPlayer.openGui(EntityPlayer.java:2501)
      at fr.darkvince.ultrav2.chest.ChestDiamond.onBlockActivated(ChestDiamond.java:29)
      at net.minecraft.server.management.ItemInWorldManager.activateBlockOrUseItem(ItemInWorldManager.java:409)
      at net.minecraft.network.NetHandlerPlayServer.processPlayerBlockPlacement(NetHandlerPlayServer.java:593)
      at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.processPacket(C08PacketPlayerBlockPlacement.java:74)
      at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.processPacket(C08PacketPlayerBlockPlacement.java:122)
      at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:241)
      at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:182)
      at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:726)
      at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614)
      at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118)
      at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485)
      at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752)
      
      A detailed walkthrough of the error, its code path and all known details is as follows:
      ---------------------------------------------------------------------------------------
      
      -- Head --
      Stacktrace:
      at fr.darkvince.proxy.GuiHandler.getServerGuiElement(GuiHandler.java:48)
      at cpw.mods.fml.common.network.NetworkRegistry.getRemoteGuiContainer(NetworkRegistry.java:243)
      at cpw.mods.fml.common.network.internal.FMLNetworkHandler.openGui(FMLNetworkHandler.java:75)
      at net.minecraft.entity.player.EntityPlayer.openGui(EntityPlayer.java:2501)
      at fr.darkvince.ultrav2.chest.ChestDiamond.onBlockActivated(ChestDiamond.java:29)
      at net.minecraft.server.management.ItemInWorldManager.activateBlockOrUseItem(ItemInWorldManager.java:409)
      at net.minecraft.network.NetHandlerPlayServer.processPlayerBlockPlacement(NetHandlerPlayServer.java:593)
      at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.processPacket(C08PacketPlayerBlockPlacement.java:74)
      at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.processPacket(C08PacketPlayerBlockPlacement.java:122)
      at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:241)
      
      -- Ticking connection --
      Details:
      Connection: net.minecraft.network.NetworkManager@13c64db
      Stacktrace:
      at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:182)
      at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:726)
      at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614)
      at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118)
      at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485)
      at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752)
      
      -- System Details --
      Details:
      Minecraft Version: 1.7.10
      Operating System: Windows 10 (x86) version 10.0
      Java Version: 1.8.0_111, Oracle Corporation
      Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
      Memory: 863281136 bytes (823 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.99.99 Minecraft Forge 10.13.4.1558 5 mods loaded, 5 mods active
      States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
      UCHIJAAAA mcp{9.05} [Minecraft Coder Pack] (minecraft.jar)
      UCHIJAAAA FML{7.10.99.99} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.4.1558-1.7.10.jar)
      UCHIJAAAA Forge{10.13.4.1558} [Minecraft Forge] (forgeSrc-1.7.10-10.13.4.1558-1.7.10.jar)
      UCHIJAAAA ultrav2{1.0.0} [Ultrafight V2] (bin)
      UCHIJAAAA ModCustomMenu{1.0} [ModCustomMenu] (bin)
      GL info: ~~ERROR~~ RuntimeException: No OpenGL context found in the current thread.
      Profiler Position: N/A (disabled)
      Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
      Player Count: 1 / 8; [EntityPlayerMP['Player872'/898, l='New World', x=-62,63, y=73,00, z=251,46]]
      Type: Integrated Server (map_client.txt)
      Is Modded: Definitely; Client brand changed to 'fml,forge'
      

      J’ai vu qu’il me donné 2 lignes voilà les class:

      package fr.darkvince.proxy;
      
      import cpw.mods.fml.common.network.IGuiHandler;
      import fr.darkvince.ultrav2.Main;
      import fr.darkvince.ultrav2.FourPlutonium.ContainerFourPlutonium;
      import fr.darkvince.ultrav2.FourPlutonium.GuiFourPlutonium;
      import fr.darkvince.ultrav2.FourPlutonium.TileEntityFourPlutonium;
      import fr.darkvince.ultrav2.Fruit.ContainerMixer;
      import fr.darkvince.ultrav2.Fruit.GUIMixer;
      import fr.darkvince.ultrav2.Fruit.TileEntityMixer;
      import fr.darkvince.ultrav2.backpack.BackPack;
      import fr.darkvince.ultrav2.backpack.ContainerBackPack;
      import fr.darkvince.ultrav2.backpack.GuiBackPack;
      import fr.darkvince.ultrav2.backpack.InventoryBackPack;
      import fr.darkvince.ultrav2.chest.ContainerChestDiamond;
      import fr.darkvince.ultrav2.chest.GuiChestDiamond;
      import fr.darkvince.ultrav2.chest.TileEntityChestDiamond;
      import fr.darkvince.ultrav2.four.ContainerIngotMasher;
      import fr.darkvince.ultrav2.four.GuiIngotMasher;
      import fr.darkvince.ultrav2.four.TileEntityIngotMasher;
      import fr.darkvince.ultrav2.poubelle.GuiPoubelle;
      import fr.darkvince.ultrav2.poubelle.containerPoubelle;
      import net.minecraft.entity.player.EntityPlayer;
      import net.minecraft.tileentity.TileEntity;
      import net.minecraft.world.World;
      
      public class GuiHandler
        implements IGuiHandler
      {
        public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z)
        {
          TileEntity entity = world.getTileEntity(x, y, z);
      
          switch (ID)
          {
      case 0:
      if (player.getHeldItem() == null || !(player.getHeldItem().getItem() instanceof BackPack)) return null;
      return new ContainerBackPack(player.inventory, new InventoryBackPack(player.getHeldItem(), 9));
          case 2: 
            return new ContainerIngotMasher(player.inventory, (TileEntityIngotMasher)entity);
          case 4: 
          return new ContainerFourPlutonium((TileEntityFourPlutonium)entity, player.inventory);
          case 6: 
              return new containerPoubelle(player.inventory);
          case 7: 
                return new ContainerMixer(player.inventory, (TileEntityMixer)entity);
          case 8: 
              return new ContainerChestDiamond((TileEntityChestDiamond)entity, player.inventory);
      
          }
          return null;
        }
      
        public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z)
        {
          TileEntity entity = world.getTileEntity(x, y, z);
          switch (ID)
          {
          case 0:
      if (player.getHeldItem() == null || !(player.getHeldItem().getItem() instanceof BackPack)) return null;
      return new GuiBackPack(player.inventory, new InventoryBackPack(player.getHeldItem(), 9));
          case 2: 
            return new GuiIngotMasher(player.inventory, (TileEntityIngotMasher)entity);
          case 4: 
          return new GuiFourPlutonium((TileEntityFourPlutonium)entity, player.inventory);
          case 6: 
              return new GuiPoubelle(player.inventory);
          case 7: 
                return new GUIMixer((TileEntityMixer)entity, player.inventory);
          case 10: 
              return new GuiChestDiamond((TileEntityChestDiamond)entity, player.inventory);
      
          }
          return null;
        }
      }
      
      
      
      package fr.darkvince.ultrav2.chest;
      
      import fr.darkvince.ultrav2.Main;
      import net.minecraft.block.Block;
      import net.minecraft.block.BlockChest;
      import net.minecraft.block.material.Material;
      import net.minecraft.entity.EntityLivingBase;
      import net.minecraft.entity.item.EntityItem;
      import net.minecraft.entity.player.EntityPlayer;
      import net.minecraft.inventory.IInventory;
      import net.minecraft.item.ItemStack;
      import net.minecraft.nbt.NBTTagCompound;
      import net.minecraft.tileentity.TileEntity;
      import net.minecraft.world.World;
      
      public class ChestDiamond extends BlockChest {
      
      public ChestDiamond(int p_i45397_1_) {
      super(p_i45397_1_);
      // TODO Auto-generated constructor stub
      }
      
      public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int side, float hitX, float hitY, float hitZ)
       {
         if (!world.isRemote) {
      
         Main instance;
      
         player.openGui(Main.instance, 8, world, x, y, z);
         }
         return true;
       }
      
          public void breakBlock(World world, int x, int y, int z, Block block, int metadata)
          {
              TileEntity tileentity = world.getTileEntity(x, y, z);
      
              if(tileentity instanceof IInventory)
              {
                  IInventory inv = (IInventory)tileentity;
                  for(int i1 = 0; i1 < inv.getSizeInventory(); ++i1)
                  {
                      ItemStack itemstack = inv.getStackInSlot(i1);
      
                      if(itemstack != null)
                      {
                          float f = world.rand.nextFloat() * 0.8F + 0.1F;
                          float f1 = world.rand.nextFloat() * 0.8F + 0.1F;
                          EntityItem entityitem;
      
                          for(float f2 = world.rand.nextFloat() * 0.8F + 0.1F; itemstack.stackSize > 0; world.spawnEntityInWorld(entityitem))
                          {
                              int j1 = world.rand.nextInt(21) + 10;
      
                              if(j1 > itemstack.stackSize)
                              {
                                  j1 = itemstack.stackSize;
                              }
      
                              itemstack.stackSize -= j1;
                              entityitem = new EntityItem(world, (double)((float)x + f), (double)((float)y + f1), (double)((float)z + f2), new ItemStack(itemstack.getItem(), j1, itemstack.getItemDamage()));
                              float f3 = 0.05F;
                              entityitem.motionX = (double)((float)world.rand.nextGaussian() * f3);
                              entityitem.motionY = (double)((float)world.rand.nextGaussian() * f3 + 0.2F);
                              entityitem.motionZ = (double)((float)world.rand.nextGaussian() * f3);
      
                              if(itemstack.hasTagCompound())
                              {
                                  entityitem.getEntityItem().setTagCompound((NBTTagCompound)itemstack.getTagCompound().copy());
                              }
                          }
                      }
                  }
                  world.func_147453_f(x, y, z, block);
              }
              super.breakBlock(world, x, y, z, block, metadata);
          }
      
          public void onBlockPlacedBy(World world, int x, int y, int z, EntityLivingBase living, ItemStack stack)
          {
              TileEntity tile = world.getTileEntity(x, y, z);
              if(tile instanceof TileEntityChestDiamond)
              {
                  if(stack.hasDisplayName())
                  {
                      ((TileEntityChestDiamond)tile).setCustomName(stack.getDisplayName());
                  }
              }
          }
      
      }
      
      

      Merci d’avance et bonne année a tous

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

        Le tile entity associé à ton bloc est celui du chest vanilla, normal que ça ne marche pas, il faut que t’implémentes la fonction pour ajouter un te à ton block.

        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
        • darkvince37
          darkvince37 dernière édition par

          @‘AymericRed’:

          Le tile entity associé à ton bloc est celui du chest vanilla, normal que ça ne marche pas, il faut que t’implémentes la fonction pour ajouter un te à ton block.

          Comme sa ?

          package fr.darkvince.ultrav2.chest;
          
          import fr.darkvince.ultrav2.Main;
          import net.minecraft.block.Block;
          import net.minecraft.block.BlockChest;
          import net.minecraft.block.material.Material;
          import net.minecraft.entity.EntityLivingBase;
          import net.minecraft.entity.item.EntityItem;
          import net.minecraft.entity.player.EntityPlayer;
          import net.minecraft.inventory.IInventory;
          import net.minecraft.item.ItemStack;
          import net.minecraft.nbt.NBTTagCompound;
          import net.minecraft.tileentity.TileEntity;
          import net.minecraft.world.World;
          
          public class ChestDiamond extends Block {
          
          public ChestDiamond(Material p_i45394_1_) {
          super(p_i45394_1_);
          // TODO Auto-generated constructor stub
          }
          
           @Override
             public boolean hasTileEntity(int metadata)
             {
                 return true; // signale que le bloc a une entité
             }
          
             @Override
             public TileEntity createTileEntity(World world, int metadata)
             {
                 return new TileEntityChestDiamond(); // indique quelle est l'entité de bloc
             }
          
          public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int side, float hitX, float hitY, float hitZ)
           {
             if (!world.isRemote) {
          
             Main instance;
          
             player.openGui(Main.instance, 8, world, x, y, z);
             }
             return true;
           }
          
              public void breakBlock(World world, int x, int y, int z, Block block, int metadata)
              {
                  TileEntity tileentity = world.getTileEntity(x, y, z);
          
                  if(tileentity instanceof IInventory)
                  {
                      IInventory inv = (IInventory)tileentity;
                      for(int i1 = 0; i1 < inv.getSizeInventory(); ++i1)
                      {
                          ItemStack itemstack = inv.getStackInSlot(i1);
          
                          if(itemstack != null)
                          {
                              float f = world.rand.nextFloat() * 0.8F + 0.1F;
                              float f1 = world.rand.nextFloat() * 0.8F + 0.1F;
                              EntityItem entityitem;
          
                              for(float f2 = world.rand.nextFloat() * 0.8F + 0.1F; itemstack.stackSize > 0; world.spawnEntityInWorld(entityitem))
                              {
                                  int j1 = world.rand.nextInt(21) + 10;
          
                                  if(j1 > itemstack.stackSize)
                                  {
                                      j1 = itemstack.stackSize;
                                  }
          
                                  itemstack.stackSize -= j1;
                                  entityitem = new EntityItem(world, (double)((float)x + f), (double)((float)y + f1), (double)((float)z + f2), new ItemStack(itemstack.getItem(), j1, itemstack.getItemDamage()));
                                  float f3 = 0.05F;
                                  entityitem.motionX = (double)((float)world.rand.nextGaussian() * f3);
                                  entityitem.motionY = (double)((float)world.rand.nextGaussian() * f3 + 0.2F);
                                  entityitem.motionZ = (double)((float)world.rand.nextGaussian() * f3);
          
                                  if(itemstack.hasTagCompound())
                                  {
                                      entityitem.getEntityItem().setTagCompound((NBTTagCompound)itemstack.getTagCompound().copy());
                                  }
                              }
                          }
                      }
                      world.func_147453_f(x, y, z, block);
                  }
                  super.breakBlock(world, x, y, z, block, metadata);
              }
          
              public void onBlockPlacedBy(World world, int x, int y, int z, EntityLivingBase living, ItemStack stack)
              {
                  TileEntity tile = world.getTileEntity(x, y, z);
                  if(tile instanceof TileEntityChestDiamond)
                  {
                      if(stack.hasDisplayName())
                      {
                          ((TileEntityChestDiamond)tile).setCustomName(stack.getDisplayName());
                      }
                  }
              }
          
          }
          
          
          1 réponse Dernière réponse Répondre Citer 0
          • robin4002
            robin4002 Moddeurs confirmés Rédacteurs Administrateurs dernière édition par

            Oui, comme ça, cela devrait fonctionner.
            Par contre il faudrait reposer les blocs déjà posés avant d’avoir changé le code.
            Ou générer un nouveau monde.

            1 réponse Dernière réponse Répondre Citer 0
            • darkvince37
              darkvince37 dernière édition par

              Nouveau Crash

              –-- Minecraft Crash Report ----
              // Why is it breaking :(
              
              Time: 04/01/17 22:14
              Description: Unexpected error
              
              java.lang.IndexOutOfBoundsException: Index: 45, Size: 45
              at java.util.ArrayList.rangeCheck(Unknown Source)
              at java.util.ArrayList.get(Unknown Source)
              at net.minecraft.inventory.Container.getSlot(Container.java:130)
              at net.minecraft.inventory.Container.putStacksInSlots(Container.java:558)
              at net.minecraft.client.network.NetHandlerPlayClient.handleWindowItems(NetHandlerPlayClient.java:1202)
              at net.minecraft.network.play.server.S30PacketWindowItems.processPacket(S30PacketWindowItems.java:70)
              at net.minecraft.network.play.server.S30PacketWindowItems.processPacket(S30PacketWindowItems.java:78)
              at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:241)
              at net.minecraft.client.multiplayer.PlayerControllerMP.updateController(PlayerControllerMP.java:317)
              at net.minecraft.client.Minecraft.runTick(Minecraft.java:1693)
              at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1039)
              at net.minecraft.client.Minecraft.run(Minecraft.java:962)
              at net.minecraft.client.main.Main.main(Main.java:164)
              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: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 java.util.ArrayList.rangeCheck(Unknown Source)
              at java.util.ArrayList.get(Unknown Source)
              at net.minecraft.inventory.Container.getSlot(Container.java:130)
              at net.minecraft.inventory.Container.putStacksInSlots(Container.java:558)
              at net.minecraft.client.network.NetHandlerPlayClient.handleWindowItems(NetHandlerPlayClient.java:1202)
              at net.minecraft.network.play.server.S30PacketWindowItems.processPacket(S30PacketWindowItems.java:70)
              at net.minecraft.network.play.server.S30PacketWindowItems.processPacket(S30PacketWindowItems.java:78)
              at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:241)
              at net.minecraft.client.multiplayer.PlayerControllerMP.updateController(PlayerControllerMP.java:317)
              
              -- Affected level --
              Details:
              Level name: MpServer
              All players: 1 total; [EntityClientPlayerMP['Player830'/256, l='MpServer', x=29,50, y=65,62, z=-311,50]]
              Chunk stats: MultiplayerChunkCache: 289, 289
              Level seed: 0
              Level generator: ID 00 - default, ver 1\. Features enabled: false
              Level generator options:
              Level spawn location: World: (33,64,-321), Chunk: (at 1,4,15 in 2,-21; contains blocks 32,0,-336 to 47,255,-321), Region: (0,-1; contains chunks 0,-32 to 31,-1, blocks 0,0,-512 to 511,255,-1)
              Level time: 302 game time, 302 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: 85 total; [EntityMooshroom['Mooshroom'/72, l='MpServer', x=49,50, y=69,00, z=-233,50], EntityMooshroom['Mooshroom'/73, l='MpServer', x=46,78, y=71,00, z=-235,50], EntityMooshroom['Mooshroom'/74, l='MpServer', x=47,09, y=70,00, z=-231,09], EntityMooshroom['Mooshroom'/75, l='MpServer', x=48,50, y=71,00, z=-239,50], EntityMooshroom['Mooshroom'/76, l='MpServer', x=44,50, y=71,00, z=-237,50], EntityMinecartChest['entity.MinecartChest.name'/82, l='MpServer', x=80,50, y=26,50, z=-257,50], EntityMooshroom['Mooshroom'/83, l='MpServer', x=93,66, y=74,00, z=-327,50], EntityMooshroom['Mooshroom'/84, l='MpServer', x=99,91, y=73,00, z=-327,44], EntityMooshroom['Mooshroom'/85, l='MpServer', x=98,53, y=72,00, z=-327,47], EntityMooshroom['Mooshroom'/86, l='MpServer', x=96,72, y=73,00, z=-327,50], EntityMooshroom['Mooshroom'/87, l='MpServer', x=96,50, y=79,00, z=-324,50], EntityMooshroom['Mooshroom'/88, l='MpServer', x=92,47, y=74,00, z=-327,50], EntityMooshroom['Mooshroom'/103, l='MpServer', x=107,50, y=68,00, z=-385,50], EntityMooshroom['Mooshroom'/104, l='MpServer', x=107,19, y=65,00, z=-388,78], EntityMooshroom['Mooshroom'/109, l='MpServer', x=102,27, y=68,00, z=-392,49], EntityMooshroom['Mooshroom'/116, l='MpServer', x=109,50, y=64,00, z=-279,53], EntityMinecartChest['entity.MinecartChest.name'/125, l='MpServer', x=104,50, y=26,50, z=-241,50], EntitySkeleton['Skeleton'/2175, l='MpServer', x=6,50, y=29,00, z=-305,50], EntitySquid['Squid'/1255, l='MpServer', x=-4,50, y=52,00, z=-296,13], EntitySquid['Squid'/1256, l='MpServer', x=-3,53, y=51,28, z=-290,50], EntityZombie['Zombie'/2286, l='MpServer', x=7,50, y=27,00, z=-311,50], EntityZombie['Zombie'/2287, l='MpServer', x=7,50, y=27,00, z=-310,50], EntityZombie['Zombie'/2288, l='MpServer', x=4,50, y=28,00, z=-307,94], EntityEnderman['Enderman'/2289, l='MpServer', x=4,00, y=28,00, z=-314,41], EntityClientPlayerMP['Player830'/256, l='MpServer', x=29,50, y=65,62, z=-311,50], EntityItem['item.tile.gravel'/2401, l='MpServer', x=74,81, y=26,13, z=-253,19], EntityItem['item.tile.gravel'/2442, l='MpServer', x=74,50, y=26,13, z=-256,28], EntitySkeleton['Skeleton'/2531, l='MpServer', x=31,50, y=30,00, z=-341,91], EntityBat['Bat'/486, l='MpServer', x=5,88, y=27,92, z=-311,22], EntityZombie['Zombie'/508, l='MpServer', x=-9,50, y=59,00, z=-380,50], EntityZombie['Zombie'/509, l='MpServer', x=-11,50, y=59,00, z=-380,50], EntityZombie['Zombie'/2559, l='MpServer', x=31,50, y=31,00, z=-316,50], EntityCreeper['Creeper'/2565, l='MpServer', x=43,85, y=23,00, z=-379,54], EntityCreeper['Creeper'/2566, l='MpServer', x=46,50, y=24,00, z=-374,50], EntityBat['Bat'/525, l='MpServer', x=72,72, y=10,27, z=-248,31], EntityBat['Bat'/528, l='MpServer', x=70,25, y=14,29, z=-260,75], EntityBat['Bat'/591, l='MpServer', x=19,33, y=23,25, z=-234,57], EntityCreeper['Creeper'/603, l='MpServer', x=-13,31, y=16,00, z=-288,06], EntityCreeper['Creeper'/604, l='MpServer', x=-4,50, y=20,00, z=-281,50], EntityCreeper['Creeper'/605, l='MpServer', x=-3,50, y=20,00, z=-282,50], EntityBat['Bat'/611, l='MpServer', x=-12,56, y=38,00, z=-383,75], EntityBat['Bat'/612, l='MpServer', x=-10,75, y=38,95, z=-380,28], EntityBat['Bat'/614, l='MpServer', x=-15,97, y=38,82, z=-383,06], EntityBat['Bat'/618, l='MpServer', x=-12,25, y=38,02, z=-383,69], EntityFallingBlock['Falling Block'/634, l='MpServer', x=-106,50, y=7,49, z=-223,50], EntityFallingBlock['Falling Block'/721, l='MpServer', x=-89,50, y=52,49, z=-288,50], EntityFallingBlock['Falling Block'/722, l='MpServer', x=-90,50, y=52,49, z=-288,50], EntityFallingBlock['Falling Block'/723, l='MpServer', x=-90,50, y=52,49, z=-287,50], EntityFallingBlock['Falling Block'/725, l='MpServer', x=-89,50, y=53,49, z=-289,50], EntityFallingBlock['Falling Block'/726, l='MpServer', x=-91,50, y=52,49, z=-288,50], EntityFallingBlock['Falling Block'/727, l='MpServer', x=-88,50, y=54,49, z=-289,50], EntityFallingBlock['Falling Block'/729, l='MpServer', x=-88,50, y=54,49, z=-290,50], EntityFallingBlock['Falling Block'/730, l='MpServer', x=-89,50, y=54,49, z=-291,50], EntityFallingBlock['Falling Block'/731, l='MpServer', x=-89,50, y=54,49, z=-290,50], EntityFallingBlock['Falling Block'/732, l='MpServer', x=-88,50, y=54,49, z=-291,50], EntityFallingBlock['Falling Block'/733, l='MpServer', x=-87,50, y=53,49, z=-291,50], EntityFallingBlock['Falling Block'/735, l='MpServer', x=-90,50, y=53,49, z=-290,50], EntityFallingBlock['Falling Block'/736, l='MpServer', x=-90,50, y=52,49, z=-289,50], EntityFallingBlock['Falling Block'/737, l='MpServer', x=-89,50, y=54,49, z=-292,50], EntityFallingBlock['Falling Block'/738, l='MpServer', x=-88,50, y=53,49, z=-292,50], EntityFallingBlock['Falling Block'/739, l='MpServer', x=-87,50, y=52,49, z=-292,50], EntitySkeleton['Skeleton'/1778, l='MpServer', x=4,50, y=27,00, z=-318,50], EntityCreeper['Creeper'/759, l='MpServer', x=69,50, y=21,00, z=-386,50], EntityCreeper['Creeper'/760, l='MpServer', x=66,50, y=21,00, z=-386,50], EntityFallingBlock['Falling Block'/771, l='MpServer', x=-60,50, y=41,49, z=-441,50], EntityFallingBlock['Falling Block'/772, l='MpServer', x=-61,50, y=40,49, z=-440,50], EntityFallingBlock['Falling Block'/773, l='MpServer', x=-61,50, y=39,49, z=-441,50], EntityZombie['Zombie'/1817, l='MpServer', x=-11,50, y=25,00, z=-336,50], EntityZombie['Zombie'/1839, l='MpServer', x=-22,50, y=54,00, z=-384,50], EntityZombie['Zombie'/2881, l='MpServer', x=-13,50, y=29,00, z=-290,50], EntityZombie['Zombie'/2882, l='MpServer', x=-13,50, y=29,00, z=-292,50], EntityZombie['Zombie'/2883, l='MpServer', x=-12,50, y=29,00, z=-290,50], EntityCreeper['Creeper'/2884, l='MpServer', x=-14,06, y=29,00, z=-291,50], EntityFallingBlock['Falling Block'/853, l='MpServer', x=-47,50, y=63,49, z=-191,50], EntityCreeper['Creeper'/860, l='MpServer', x=43,50, y=15,00, z=-389,50], EntityItem['item.tile.gravel'/3956, l='MpServer', x=74,22, y=26,13, z=-254,75], EntityItem['item.tile.gravel'/3963, l='MpServer', x=74,25, y=26,13, z=-252,66], EntitySkeleton['Skeleton'/2948, l='MpServer', x=36,50, y=25,00, z=-370,50], EntityZombie['Zombie'/2981, l='MpServer', x=-19,41, y=38,00, z=-388,00], EntityZombie['Zombie'/2982, l='MpServer', x=-17,50, y=38,00, z=-382,50], EntityZombie['Zombie'/2983, l='MpServer', x=55,50, y=22,00, z=-388,50], EntitySquid['Squid'/1983, l='MpServer', x=-31,97, y=62,31, z=-269,50], EntitySquid['Squid'/1984, l='MpServer', x=-25,09, y=61,91, z=-264,94], EntitySquid['Squid'/1985, l='MpServer', x=-28,38, y=59,00, z=-266,94], EntitySkeleton['Skeleton'/995, l='MpServer', x=-1,50, y=32,00, z=-371,50]]
              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:2566)
              at net.minecraft.client.Minecraft.run(Minecraft.java:991)
              at net.minecraft.client.main.Main.main(Main.java:164)
              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: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 10 (x86) version 10.0
              Java Version: 1.8.0_111, Oracle Corporation
              Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
              Memory: 812233992 bytes (774 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.99.99 Minecraft Forge 10.13.4.1558 5 mods loaded, 5 mods active
              States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
              UCHIJAAAA mcp{9.05} [Minecraft Coder Pack] (minecraft.jar)
              UCHIJAAAA FML{7.10.99.99} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.4.1558-1.7.10.jar)
              UCHIJAAAA Forge{10.13.4.1558} [Minecraft Forge] (forgeSrc-1.7.10-10.13.4.1558-1.7.10.jar)
              UCHIJAAAA ultrav2{1.0.0} [Ultrafight V2] (bin)
              UCHIJAAAA ModCustomMenu{1.0} [ModCustomMenu] (bin)
              GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 372.90' Renderer: 'GeForce GTX 750 Ti/PCIe/SSE2'
              Launched Version: 1.7.10
              LWJGL: 2.9.1
              OpenGL: GeForce GTX 750 Ti/PCIe/SSE2 GL version 4.5.0 NVIDIA 372.90, 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: []
              Current Language: English (US)
              Profiler Position: N/A (disabled)
              Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 b
              

              Je pense que c’ets le container

              package fr.darkvince.ultrav2.chest;
              
              import net.minecraft.entity.player.EntityPlayer;
              import net.minecraft.entity.player.InventoryPlayer;
              import net.minecraft.inventory.Container;
              import net.minecraft.inventory.Slot;
              import net.minecraft.item.ItemStack;
              
              public class ContainerChestDiamond extends Container
              {
                private final TileEntityChestDiamond tileTuto;
              
                public ContainerChestDiamond(TileEntityChestDiamond tile, InventoryPlayer inventory)
                {
                    this.tileTuto = tile;
                    for(int i = 0; i < 3; ++i)
                    {
                        for(int j = 0; j < 9; ++j)
                        {
                            this.addSlotToContainer(new Slot(tile, j + i * 9, 8 + j * 18, 18 + i * 18));
                        }
                    }
                    this.bindPlayerInventory(inventory);
                }
              
                private void bindPlayerInventory(InventoryPlayer inventory)
                {
                    int i;
                    for(i = 0; i < 3; ++i)
                    {
                        for(int j = 0; j < 9; ++j)
                        {
                            this.addSlotToContainer(new Slot(inventory, j + i * 9 + 9, 8 + j * 18, 86 + i * 18));
                        }
                    }
              
                    for(i = 0; i < 9; ++i)
                    {
                        this.addSlotToContainer(new Slot(inventory, i, 8 + i * 18, 144));
                    }
                }
              
                public ItemStack transferStackInSlot(EntityPlayer player, int slotIndex)
                {
                    ItemStack itemstack = null;
                    Slot slot = (Slot)this.inventorySlots.get(slotIndex);
              
                    if(slot != null && slot.getHasStack())
                    {
                        ItemStack itemstack1 = slot.getStack();
                        itemstack = itemstack1.copy();
              
                        if(slotIndex < this.tileTuto.getSizeInventory())
                        {
                            if(!this.mergeItemStack(itemstack1, this.tileTuto.getSizeInventory(), this.inventorySlots.size(), true))
                            {
                                return null;
                            }
                        }
                        else if(!this.mergeItemStack(itemstack1, 0, this.tileTuto.getSizeInventory(), false))
                        {
                            return null;
                        }
              
                        if(itemstack1.stackSize == 0)
                        {
                            slot.putStack((ItemStack)null);
                        }
                        else
                        {
                            slot.onSlotChanged();
                        }
                    }
                    return itemstack;
                }
              
                @Override
                public boolean canInteractWith(EntityPlayer player)
                {
                    return this.tileTuto.isUseableByPlayer(player);
                }
              
                public void onContainerClosed(EntityPlayer player)
                {
                    super.onContainerClosed(player);
                    this.tileTuto.closeInventory();
                }
              
              }
              
              1 réponse Dernière réponse Répondre Citer 0
              • robin4002
                robin4002 Moddeurs confirmés Rédacteurs Administrateurs dernière édition par

                Tu as ajouté plus de slot que ton inventaire en a.

                1 réponse Dernière réponse Répondre Citer 0
                • darkvince37
                  darkvince37 dernière édition par

                  Meme en changer les valeur sa crash je comprend pas

                  1 réponse Dernière réponse Répondre Citer 0
                  • robin4002
                    robin4002 Moddeurs confirmés Rédacteurs Administrateurs dernière édition par

                    Tu as quoi dans ton tile entity ?

                    1 réponse Dernière réponse Répondre Citer 0
                    • darkvince37
                      darkvince37 dernière édition par

                      @‘robin4002’:

                      Tu as quoi dans ton tile entity ?

                      Comme en haut j’ai juste changer les valuer du contener et du gui

                      1 réponse Dernière réponse Répondre Citer 0
                      • robin4002
                        robin4002 Moddeurs confirmés Rédacteurs Administrateurs dernière édition par

                        Tu n’as jamais envoyé ton tile entity.

                        1 réponse Dernière réponse Répondre Citer 0
                        • darkvince37
                          darkvince37 dernière édition par

                          Ah oui désolé

                          package fr.darkvince.ultrav2.chest;
                          
                          import net.minecraft.entity.player.EntityPlayer;
                          import net.minecraft.inventory.IInventory;
                          import net.minecraft.item.ItemStack;
                          import net.minecraft.nbt.NBTTagCompound;
                          import net.minecraft.nbt.NBTTagList;
                          import net.minecraft.tileentity.TileEntity;
                          import net.minecraftforge.common.util.Constants;
                          
                          public class TileEntityChestDiamond extends TileEntity implements IInventory{
                          
                          private ItemStack[] inventory = new ItemStack[72];
                          private String customName;
                          
                          public void readFromNBT(NBTTagCompound nbttag)
                              {
                                  super.readFromNBT(nbttag);
                                  NBTTagList nbttaglist = nbttag.getTagList("Items", Constants.NBT.TAG_COMPOUND);
                                  this.inventory = new ItemStack[this.getSizeInventory()];
                          
                                  if (nbttag.hasKey("CustomName"))
                                  {
                                      this.customName = nbttag.getString("CustomName");
                                  }
                          
                                  for (int i = 0; i < nbttaglist.tagCount(); i++)
                                  {
                                      NBTTagCompound nbttagcompound1 = nbttaglist.getCompoundTagAt(i);
                                      int j = nbttagcompound1.getByte("Slot");
                          
                                      if (j >= 0 && j < this.inventory.length)
                                      {
                                          this.inventory[j] = ItemStack.loadItemStackFromNBT(nbttagcompound1);
                                      }
                                  }
                              }
                          
                              public void writeToNBT(NBTTagCompound nbttag)
                              {
                                  super.writeToNBT(nbttag);
                                  NBTTagList nbttaglist = new NBTTagList();
                          
                                  for (int i = 0; i < this.inventory.length; i++)
                                  {
                                      if (this.inventory* != null)
                                      {
                                          NBTTagCompound nbttagcompound1 = new NBTTagCompound();
                                          nbttagcompound1.setByte("Slot", (byte)i);
                                          this.inventory*.writeToNBT(nbttagcompound1);
                                          nbttaglist.appendTag(nbttagcompound1);
                                      }
                                  }
                          
                                  nbttag.setTag("Items", nbttaglist);
                          
                              }
                          
                              @Override
                          public int getSizeInventory()
                          {
                          return inventory.length;
                          }
                          
                              @Override
                          public ItemStack getStackInSlot(int slotId)
                          {
                          return inventory[slotId];
                          }
                          
                              @Override
                              public ItemStack decrStackSize(int slotId, int quantity)
                              {
                                  if (this.inventory[slotId] != null)
                                  {
                                      ItemStack itemstack;
                          
                                      if (this.inventory[slotId].stackSize <= quantity)
                                      {
                                          itemstack = this.inventory[slotId];
                                          this.inventory[slotId] = null;
                                          this.markDirty();
                                          return itemstack;
                                      }
                                      else
                                      {
                                          itemstack = this.inventory[slotId].splitStack(quantity);
                          
                                          if (this.inventory[slotId].stackSize == 0)
                                          {
                                              this.inventory[slotId] = null;
                                          }
                          
                                          this.markDirty();
                                          return itemstack;
                                      }
                                  }
                                  else
                                  {
                                      return null;
                                  }
                              }
                          
                          @Override
                          public ItemStack getStackInSlotOnClosing(int slotId)
                          {
                                  if (this.inventory[slotId] != null)
                                  {
                                      ItemStack itemstack = this.inventory[slotId];
                                      this.inventory[slotId] = null;
                                      return itemstack;
                                  }
                                  else
                                  {
                                      return null;
                                  }
                          }
                          
                          @Override
                          public void setInventorySlotContents(int slotId, ItemStack stack)
                          {
                                  this.inventory[slotId] = stack;
                          
                                  if (stack != null && stack.stackSize > this.getInventoryStackLimit())
                                  {
                                      stack.stackSize = this.getInventoryStackLimit();
                                  }
                          
                                  this.markDirty();
                          }
                          
                          @Override
                          public String getInventoryName()
                          {
                          return this.hasCustomInventoryName() ? this.customName : "container.bigchest";
                          }
                          
                          @Override
                          public boolean hasCustomInventoryName()
                          {
                                  return this.customName != null && this.customName.length() > 0;
                          }
                          
                              public void setCustomGuiName(String name)
                              {
                                  this.customName = name;
                              }
                          
                              @Override
                          public int getInventoryStackLimit()
                          {
                          return 64;
                          }
                              @Override
                          public boolean isUseableByPlayer(EntityPlayer player)
                          {
                          return worldObj.getTileEntity(xCoord, yCoord, zCoord) == this && player.getDistanceSq(xCoord + 0.5, yCoord + 0.5, zCoord + 0.5) < 64;
                          }
                          
                          @Override
                          public boolean isItemValidForSlot(int slotId, ItemStack stack)
                          {
                          return true;
                          }
                          
                          @Override
                          public void openInventory() {
                          // TODO Auto-generated method stub
                          
                          }
                          
                          @Override
                          public void closeInventory() {
                          // TODO Auto-generated method stub
                          
                          }
                          
                          }
                          
                          1 réponse Dernière réponse Répondre Citer 0
                          • robin4002
                            robin4002 Moddeurs confirmés Rédacteurs Administrateurs dernière édition par

                            Ton tableau fait 72 de long, ton crash ne devrait pas être possible.
                            Il était plus petit avant ?
                            Si oui, envoie le dernier crash en date.

                            1 réponse Dernière réponse Répondre Citer 0
                            • darkvince37
                              darkvince37 dernière édition par

                              @‘robin4002’:

                              Ton tableau fait 72 de long, ton crash ne devrait pas être possible.
                              Il était plus petit avant ?
                              Si oui, envoie le dernier crash en date.

                              Je vient de le changer je les mis sur 36 le crash

                              –-- Minecraft Crash Report ----
                              // Why is it breaking :(
                              
                              Time: 05/01/17 11:17
                              Description: Ticking memory connection
                              
                              java.lang.ArrayIndexOutOfBoundsException: 36
                              at fr.darkvince.ultrav2.chest.TileEntityChestDiamond.getStackInSlot(TileEntityChestDiamond.java:69)
                              at net.minecraft.inventory.Slot.getStack(Slot.java:88)
                              at net.minecraft.inventory.Container.getInventory(Container.java:67)
                              at net.minecraft.inventory.Container.addCraftingToCrafters(Container.java:53)
                              at cpw.mods.fml.common.network.internal.FMLNetworkHandler.openGui(FMLNetworkHandler.java:88)
                              at net.minecraft.entity.player.EntityPlayer.openGui(EntityPlayer.java:2501)
                              at fr.darkvince.ultrav2.chest.ChestDiamond.onBlockActivated(ChestDiamond.java:42)
                              at net.minecraft.server.management.ItemInWorldManager.activateBlockOrUseItem(ItemInWorldManager.java:409)
                              at net.minecraft.network.NetHandlerPlayServer.processPlayerBlockPlacement(NetHandlerPlayServer.java:593)
                              at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.processPacket(C08PacketPlayerBlockPlacement.java:74)
                              at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.processPacket(C08PacketPlayerBlockPlacement.java:122)
                              at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:241)
                              at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:182)
                              at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:726)
                              at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614)
                              at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118)
                              at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485)
                              at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752)
                              
                              A detailed walkthrough of the error, its code path and all known details is as follows:
                              ---------------------------------------------------------------------------------------
                              
                              -- Head --
                              Stacktrace:
                              at fr.darkvince.ultrav2.chest.TileEntityChestDiamond.getStackInSlot(TileEntityChestDiamond.java:69)
                              at net.minecraft.inventory.Slot.getStack(Slot.java:88)
                              at net.minecraft.inventory.Container.getInventory(Container.java:67)
                              at net.minecraft.inventory.Container.addCraftingToCrafters(Container.java:53)
                              at cpw.mods.fml.common.network.internal.FMLNetworkHandler.openGui(FMLNetworkHandler.java:88)
                              at net.minecraft.entity.player.EntityPlayer.openGui(EntityPlayer.java:2501)
                              at fr.darkvince.ultrav2.chest.ChestDiamond.onBlockActivated(ChestDiamond.java:42)
                              at net.minecraft.server.management.ItemInWorldManager.activateBlockOrUseItem(ItemInWorldManager.java:409)
                              at net.minecraft.network.NetHandlerPlayServer.processPlayerBlockPlacement(NetHandlerPlayServer.java:593)
                              at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.processPacket(C08PacketPlayerBlockPlacement.java:74)
                              at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.processPacket(C08PacketPlayerBlockPlacement.java:122)
                              at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:241)
                              
                              -- Ticking connection --
                              Details:
                              Connection: net.minecraft.network.NetworkManager@139e8ef
                              Stacktrace:
                              at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:182)
                              at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:726)
                              at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614)
                              at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118)
                              at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485)
                              at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752)
                              
                              -- System Details --
                              Details:
                              Minecraft Version: 1.7.10
                              Operating System: Windows 10 (x86) version 10.0
                              Java Version: 1.8.0_111, Oracle Corporation
                              Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
                              Memory: 832577856 bytes (794 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: 15, tcache: 0, allocated: 13, tallocated: 95
                              FML: MCP v9.05 FML v7.10.99.99 Minecraft Forge 10.13.4.1558 5 mods loaded, 5 mods active
                              States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
                              UCHIJAAAA mcp{9.05} [Minecraft Coder Pack] (minecraft.jar)
                              UCHIJAAAA FML{7.10.99.99} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.4.1558-1.7.10.jar)
                              UCHIJAAAA Forge{10.13.4.1558} [Minecraft Forge] (forgeSrc-1.7.10-10.13.4.1558-1.7.10.jar)
                              UCHIJAAAA ultrav2{1.0.0} [Ultrafight V2] (bin)
                              UCHIJAAAA ModCustomMenu{1.0} [ModCustomMenu] (bin)
                              GL info: ~~ERROR~~ RuntimeException: No OpenGL context found in the current thread.
                              Profiler Position: N/A (disabled)
                              Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
                              Player Count: 1 / 8; [EntityPlayerMP['Player443'/340, l='New World', x=33,01, y=68,00, z=-325,20]]
                              Type: Integrated Server (map_client.txt)
                              Is Modded: Definitely; Client brand changed to 'fml,forge'
                              
                              
                                  @Override
                              public ItemStack getStackInSlot(int slotId)
                              {
                              return inventory[slotId];
                              }
                              
                              
                              1 réponse Dernière réponse Répondre Citer 0
                              • robin4002
                                robin4002 Moddeurs confirmés Rédacteurs Administrateurs dernière édition par

                                C’est pas normal, vu le code dans ton container :

                                int i;
                                for(i = 0; i < 3; ++i)
                                {
                                for(int j = 0; j < 9; ++j)
                                {
                                this.addSlotToContainer(new Slot(inventory, j + i * 9 + 9, 8 + j * 18, 86 + i * 18));
                                }
                                }
                                

                                Le dernier slot devrait être 8 + 9 * 2 = 26.
                                Ça ne devrait pas atteindre 36.

                                Ajoutes-tu des slots autre-part ?

                                1 réponse Dernière réponse Répondre Citer 0
                                • darkvince37
                                  darkvince37 dernière édition par

                                  @‘robin4002’:

                                  C’est pas normal, vu le code dans ton container :

                                       int i;
                                       for(i = 0; i < 3; ++i)
                                       {
                                           for(int j = 0; j < 9; ++j)
                                           {
                                               this.addSlotToContainer(new Slot(inventory, j + i * 9 + 9, 8 + j * 18, 86 + i * 18));
                                           }
                                       }
                                  

                                  Le dernier slot devrait être 8 + 9 * 2 = 26.
                                  Ça ne devrait pas atteindre 36.

                                  Ajoutes-tu des slots autre-part ?

                                  Non j’ai juste se que j’ai donner

                                  Edit j’ai remis a 72 car c’est la valeur que je veut réelement

                                  –-- Minecraft Crash Report ----
                                  // I let you down. Sorry :(
                                  
                                  Time: 05/01/17 19:32
                                  Description: Unexpected error
                                  
                                  java.lang.IndexOutOfBoundsException: Index: 45, Size: 45
                                  at java.util.ArrayList.rangeCheck(Unknown Source)
                                  at java.util.ArrayList.get(Unknown Source)
                                  at net.minecraft.inventory.Container.getSlot(Container.java:130)
                                  at net.minecraft.inventory.Container.putStacksInSlots(Container.java:558)
                                  at net.minecraft.client.network.NetHandlerPlayClient.handleWindowItems(NetHandlerPlayClient.java:1202)
                                  at net.minecraft.network.play.server.S30PacketWindowItems.processPacket(S30PacketWindowItems.java:70)
                                  at net.minecraft.network.play.server.S30PacketWindowItems.processPacket(S30PacketWindowItems.java:78)
                                  at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:241)
                                  at net.minecraft.client.multiplayer.PlayerControllerMP.updateController(PlayerControllerMP.java:317)
                                  at net.minecraft.client.Minecraft.runTick(Minecraft.java:1693)
                                  at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1039)
                                  at net.minecraft.client.Minecraft.run(Minecraft.java:962)
                                  at net.minecraft.client.main.Main.main(Main.java:164)
                                  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: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 java.util.ArrayList.rangeCheck(Unknown Source)
                                  at java.util.ArrayList.get(Unknown Source)
                                  at net.minecraft.inventory.Container.getSlot(Container.java:130)
                                  at net.minecraft.inventory.Container.putStacksInSlots(Container.java:558)
                                  at net.minecraft.client.network.NetHandlerPlayClient.handleWindowItems(NetHandlerPlayClient.java:1202)
                                  at net.minecraft.network.play.server.S30PacketWindowItems.processPacket(S30PacketWindowItems.java:70)
                                  at net.minecraft.network.play.server.S30PacketWindowItems.processPacket(S30PacketWindowItems.java:78)
                                  at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:241)
                                  at net.minecraft.client.multiplayer.PlayerControllerMP.updateController(PlayerControllerMP.java:317)
                                  
                                  -- Affected level --
                                  Details:
                                  Level name: MpServer
                                  All players: 1 total; [EntityClientPlayerMP['Player450'/336, l='MpServer', x=32,75, y=69,62, z=-326,01]]
                                  Chunk stats: MultiplayerChunkCache: 289, 289
                                  Level seed: 0
                                  Level generator: ID 00 - default, ver 1\. Features enabled: false
                                  Level generator options:
                                  Level spawn location: World: (33,64,-321), Chunk: (at 1,4,15 in 2,-21; contains blocks 32,0,-336 to 47,255,-321), Region: (0,-1; contains chunks 0,-32 to 31,-1, blocks 0,0,-512 to 511,255,-1)
                                  Level time: 10104 game time, 10104 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: 100 total; [EntitySkeleton['Skeleton'/50, l='MpServer', x=-20,63, y=19,00, z=-385,41], EntitySpider['Spider'/51, l='MpServer', x=-30,56, y=20,00, z=-396,06], EntitySkeleton['Skeleton'/52, l='MpServer', x=-20,59, y=18,00, z=-396,44], EntitySkeleton['Skeleton'/53, l='MpServer', x=-19,77, y=19,00, z=-386,45], EntitySkeleton['Skeleton'/54, l='MpServer', x=-26,21, y=56,00, z=-386,50], EntityZombie['Zombie'/55, l='MpServer', x=-16,50, y=22,00, z=-373,91], EntityCreeper['Creeper'/56, l='MpServer', x=-17,00, y=18,00, z=-383,59], EntityCreeper['Creeper'/57, l='MpServer', x=-27,00, y=60,00, z=-295,56], EntitySkeleton['Skeleton'/62, l='MpServer', x=-1,97, y=41,00, z=-403,34], EntitySkeleton['Skeleton'/63, l='MpServer', x=-3,22, y=41,00, z=-404,84], EntitySkeleton['Skeleton'/65, l='MpServer', x=-1,97, y=41,00, z=-404,16], EntityZombie['Zombie'/66, l='MpServer', x=-2,31, y=41,00, z=-402,31], EntityZombie['Zombie'/67, l='MpServer', x=-4,94, y=17,00, z=-398,38], EntityCreeper['Creeper'/68, l='MpServer', x=-11,44, y=55,00, z=-395,09], EntityZombie['Zombie'/69, l='MpServer', x=-10,94, y=54,00, z=-391,50], EntityZombie['Zombie'/70, l='MpServer', x=-6,53, y=58,00, z=-394,94], EntitySkeleton['Skeleton'/71, l='MpServer', x=-8,31, y=56,00, z=-394,53], EntityZombie['Zombie'/72, l='MpServer', x=-8,84, y=55,00, z=-393,44], EntityZombie['Zombie'/73, l='MpServer', x=-5,31, y=58,00, z=-396,53], EntityBat['Bat'/74, l='MpServer', x=-0,75, y=37,10, z=-373,31], EntityBat['Bat'/75, l='MpServer', x=-0,03, y=36,02, z=-376,69], EntitySkeleton['Skeleton'/76, l='MpServer', x=-4,06, y=24,00, z=-328,53], EntitySkeleton['Skeleton'/77, l='MpServer', x=-11,38, y=29,00, z=-289,84], EntityZombie['Zombie'/78, l='MpServer', x=-8,50, y=19,00, z=-290,03], EntityCreeper['Creeper'/79, l='MpServer', x=-8,00, y=18,00, z=-288,50], EntityCreeper['Creeper'/80, l='MpServer', x=-11,16, y=18,00, z=-290,38], EntityClientPlayerMP['Player450'/336, l='MpServer', x=32,75, y=69,62, z=-326,01], EntityCreeper['Creeper'/81, l='MpServer', x=-4,50, y=53,00, z=-297,50], EntityZombie['Zombie'/82, l='MpServer', x=-13,00, y=16,85, z=-286,47], EntityCreeper['Creeper'/83, l='MpServer', x=-11,50, y=18,00, z=-285,50], EntitySkeleton['Skeleton'/94, l='MpServer', x=12,34, y=36,00, z=-388,00], EntityBat['Bat'/95, l='MpServer', x=5,25, y=56,10, z=-388,66], EntityZombie['Zombie'/96, l='MpServer', x=15,59, y=55,00, z=-392,31], EntityCreeper['Creeper'/97, l='MpServer', x=13,33, y=32,00, z=-372,42], EntityCreeper['Creeper'/98, l='MpServer', x=9,19, y=32,00, z=-372,42], EntityZombie['Zombie'/99, l='MpServer', x=6,63, y=27,00, z=-309,91], EntitySkeleton['Skeleton'/100, l='MpServer', x=7,86, y=27,00, z=-309,77], EntityCreeper['Creeper'/101, l='MpServer', x=4,30, y=27,20, z=-300,70], EntitySkeleton['Skeleton'/102, l='MpServer', x=3,38, y=52,36, z=-292,50], EntitySkeleton['Skeleton'/103, l='MpServer', x=-1,02, y=21,00, z=-277,50], EntityBat['Bat'/104, l='MpServer', x=15,03, y=28,18, z=-275,75], EntityBat['Bat'/105, l='MpServer', x=12,34, y=30,26, z=-276,16], EntityBat['Bat'/106, l='MpServer', x=8,63, y=32,10, z=-274,16], EntityBat['Bat'/110, l='MpServer', x=23,91, y=28,95, z=-302,34], EntitySkeleton['Skeleton'/111, l='MpServer', x=25,53, y=28,00, z=-298,91], EntitySpider['Spider'/112, l='MpServer', x=23,72, y=28,00, z=-299,97], EntityBat['Bat'/113, l='MpServer', x=17,63, y=33,82, z=-269,78], EntityBat['Bat'/124, l='MpServer', x=45,44, y=31,10, z=-404,28], EntityZombie['Zombie'/125, l='MpServer', x=39,66, y=21,00, z=-401,88], EntityZombie['Zombie'/127, l='MpServer', x=47,56, y=18,00, z=-387,47], EntitySkeleton['Skeleton'/128, l='MpServer', x=46,66, y=20,00, z=-381,31], EntitySkeleton['Skeleton'/129, l='MpServer', x=46,56, y=20,00, z=-382,56], EntitySkeleton['Skeleton'/130, l='MpServer', x=39,94, y=24,00, z=-372,47], EntitySkeleton['Skeleton'/131, l='MpServer', x=39,16, y=25,00, z=-369,31], EntitySkeleton['Skeleton'/132, l='MpServer', x=43,66, y=23,03, z=-377,64], EntityWitch['Witch'/133, l='MpServer', x=47,22, y=21,00, z=-379,47], EntityZombie['Zombie'/134, l='MpServer', x=46,22, y=19,00, z=-386,32], EntityCreeper['Creeper'/135, l='MpServer', x=33,44, y=32,00, z=-323,03], EntitySpider['Spider'/136, l='MpServer', x=47,04, y=57,37, z=-292,28], EntitySpider['Spider'/137, l='MpServer', x=43,73, y=58,00, z=-296,55], EntitySpider['Spider'/138, l='MpServer', x=41,71, y=58,00, z=-293,71], EntitySpider['Spider'/139, l='MpServer', x=45,28, y=58,00, z=-292,84], EntitySpider['Spider'/140, l='MpServer', x=45,36, y=58,00, z=-294,83], EntitySkeleton['Skeleton'/141, l='MpServer', x=42,63, y=53,00, z=-302,31], EntitySpider['Spider'/142, l='MpServer', x=43,40, y=58,00, z=-294,84], EntitySkeleton['Skeleton'/143, l='MpServer', x=41,56, y=53,00, z=-303,94], EntityWitch['Witch'/159, l='MpServer', x=48,48, y=21,00, z=-383,38], EntityWitch['Witch'/160, l='MpServer', x=52,38, y=21,00, z=-386,13], EntityCreeper['Creeper'/161, l='MpServer', x=48,63, y=21,00, z=-382,41], EntityZombie['Zombie'/162, l='MpServer', x=51,53, y=34,00, z=-326,22], EntityZombie['Zombie'/163, l='MpServer', x=50,53, y=32,00, z=-323,25], EntityCreeper['Creeper'/177, l='MpServer', x=72,44, y=30,00, z=-395,31], EntityZombie['Zombie'/178, l='MpServer', x=65,53, y=28,00, z=-397,94], EntityMooshroom['Mooshroom'/179, l='MpServer', x=75,63, y=72,00, z=-397,38], EntityMooshroom['Mooshroom'/180, l='MpServer', x=68,63, y=72,00, z=-332,78], EntityBat['Bat'/181, l='MpServer', x=78,75, y=39,10, z=-295,59], EntityBat['Bat'/182, l='MpServer', x=73,44, y=27,10, z=-250,13], EntityZombie['Zombie'/184, l='MpServer', x=85,75, y=12,00, z=-401,31], EntitySkeleton['Skeleton'/185, l='MpServer', x=86,69, y=12,00, z=-402,38], EntityCreeper['Creeper'/186, l='MpServer', x=86,50, y=17,00, z=-401,03], EntityEnderman['Enderman'/188, l='MpServer', x=83,03, y=14,00, z=-399,35], EntityCreeper['Creeper'/189, l='MpServer', x=83,94, y=14,00, z=-400,04], EntitySkeleton['Skeleton'/190, l='MpServer', x=85,50, y=25,00, z=-394,50], EntityMooshroom['Mooshroom'/191, l='MpServer', x=94,28, y=79,00, z=-320,69], EntityMooshroom['Mooshroom'/192, l='MpServer', x=95,47, y=76,00, z=-333,63], EntityMinecartChest['entity.MinecartChest.name'/193, l='MpServer', x=80,50, y=26,50, z=-257,50], EntityBat['Bat'/194, l='MpServer', x=90,25, y=29,00, z=-255,25], EntityBat['Bat'/195, l='MpServer', x=90,50, y=29,00, z=-255,28], EntityBat['Bat'/196, l='MpServer', x=82,38, y=48,10, z=-253,25], EntityMooshroom['Mooshroom'/199, l='MpServer', x=102,22, y=66,00, z=-386,69], EntityMooshroom['Mooshroom'/204, l='MpServer', x=110,63, y=70,00, z=-339,22], EntityMooshroom['Mooshroom'/205, l='MpServer', x=103,47, y=72,00, z=-333,81], EntityMooshroom['Mooshroom'/206, l='MpServer', x=112,13, y=77,00, z=-310,80], EntityMooshroom['Mooshroom'/207, l='MpServer', x=111,25, y=72,00, z=-300,28], EntityMooshroom['Mooshroom'/208, l='MpServer', x=111,66, y=72,00, z=-291,28], EntityMooshroom['Mooshroom'/209, l='MpServer', x=114,53, y=63,00, z=-276,41], EntityMooshroom['Mooshroom'/210, l='MpServer', x=101,38, y=66,00, z=-269,47], EntityMooshroom['Mooshroom'/214, l='MpServer', x=112,47, y=63,00, z=-400,28], EntityMooshroom['Mooshroom'/215, l='MpServer', x=112,25, y=65,00, z=-390,47], EntityMooshroom['Mooshroom'/221, l='MpServer', x=112,78, y=70,00, z=-334,75]]
                                  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:2566)
                                  at net.minecraft.client.Minecraft.run(Minecraft.java:991)
                                  at net.minecraft.client.main.Main.main(Main.java:164)
                                  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: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 10 (x86) version 10.0
                                  Java Version: 1.8.0_111, Oracle Corporation
                                  Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
                                  Memory: 859898744 bytes (820 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: 11, tcache: 0, allocated: 13, tallocated: 95
                                  FML: MCP v9.05 FML v7.10.99.99 Minecraft Forge 10.13.4.1558 5 mods loaded, 5 mods active
                                  States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
                                  UCHIJAAAA mcp{9.05} [Minecraft Coder Pack] (minecraft.jar)
                                  UCHIJAAAA FML{7.10.99.99} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.4.1558-1.7.10.jar)
                                  UCHIJAAAA Forge{10.13.4.1558} [Minecraft Forge] (forgeSrc-1.7.10-10.13.4.1558-1.7.10.jar)
                                  UCHIJAAAA ultrav2{1.0.0} [Ultrafight V2] (bin)
                                  UCHIJAAAA ModCustomMenu{1.0} [ModCustomMenu] (bin)
                                  GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 372.90' Renderer: 'GeForce GTX 750 Ti/PCIe/SSE2'
                                  Launched Version: 1.7.10
                                  LWJGL: 2.9.1
                                  OpenGL: GeForce GTX 750 Ti/PCIe/SSE2 GL version 4.5.0 NVIDIA 372.90, 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: []
                                  Current Language: English (US)
                                  Profiler Position: N/A (disabled)
                                  Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
                                  Anisotropic Filtering: Off (1)
                                  

                                  C’est le crash que j’avais mis plus haut mais le truc c’est que 72 sa devrai passez c’est pas trop grand

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

                                  MINECRAFT FORGE FRANCE © 2018

                                  Powered by NodeBB