Вопрос по GUI

Версия Minecraft
1.6.4
Добрый вечер. Я догадываюсь, что я всех уже достал, но все же. Прописал код по гайдам для сундука. Но во время открытия последнего, майн вылетает.
Краш лог прилагается.
GuiStorage.java

package assets.testmod.src;

import org.lwjgl.opengl.GL11;

import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.FontRenderer;
import net.minecraft.client.gui.inventory.GuiContainer;
import net.minecraft.client.resources.I18n;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.player.InventoryPlayer;
import net.minecraft.inventory.IInventory;
import net.minecraft.util.ResourceLocation;

public class GuiStorage extends GuiContainer {

private ResourceLocation texture = new ResourceLocation(ModInfo.MODID, "textures/gui/container/storage.png");

private InventoryPlayer inventory;
private TileEntityStorage te;

public GuiStorage(TileEntityStorage te, EntityPlayer player)
{
super(new ContainerStorage(te, player));
inventory = player.inventory;
this.te = te;
}
@Override
protected void drawGuiContainerBackgroundLayer(float par1, int par2, int par3)
{
Minecraft.getMinecraft().renderEngine.bindTexture(texture);

GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);

int x = (width - xSize) / 2;
int y = (height - ySize) / 2;

drawTexturedModalRect(x, y, 0, 0, xSize, ySize);
}

@Override
protected void drawGuiContainerForegroundLayer(int par1, int par2)
{
fontRenderer.drawString(I18n.getString(te.getInvName()), (xSize / 2) - (fontRenderer.getStringWidth(I18n.getString(te.getInvName())) / 2), 6, 4210752, false);
fontRenderer.drawString(I18n.getString(inventory.getInvName()), 8, ySize - 96 + 2, 4210752);
}
}








TileEnitityStorage.java

package assets.testmod.src;


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;

public class TileEntityStorage extends TileEntity implements IInventory{

private ItemStack[] items = new ItemStack[15];

@Override
public int getSizeInventory()
{
return items.length;
}


@Override
public ItemStack getStackInSlot(int slot)
{
return items[slot];
}

@Override
public ItemStack decrStackSize(int slot, int amount)
{
if (items[slot] != null)
{
ItemStack itemstack;

if (items[slot].stackSize == amount)
{
itemstack = items[slot];
items[slot] = null;
onInventoryChanged();
return itemstack; } }
return null;
}

@Override
public ItemStack getStackInSlotOnClosing(int slot) {
if (items[slot] != null)
{
ItemStack itemstack = items[slot];
items[slot] = null;

return itemstack; }
return null; }

@Override
public void setInventorySlotContents(int slot, ItemStack itemstack) {
items[slot] = itemstack;
if (itemstack != null && itemstack.stackSize > getInventoryStackLimit())
{
itemstack.stackSize = getInventoryStackLimit();
}
onInventoryChanged();

}

@Override
public String getInvName() {

return "container.storage";
}

@Override
public boolean isInvNameLocalized() {
// TODO Auto-generated method stub
return false;
}

@Override
public int getInventoryStackLimit() {

return 64;
}

@Override
public boolean isUseableByPlayer(EntityPlayer entityplayer) {

return worldObj.getBlockTileEntity(xCoord, yCoord, zCoord) != this ? false : entityplayer.getDistanceSq((double)xCoord + 0.5D, (double)yCoord + 0.5D, (double)zCoord + 0.5D) <= 64.0D;
}

@Override
public void openChest() {


}

@Override
public void closeChest() {


}

@Override
public boolean isItemValidForSlot(int slot, ItemStack itemstack) {

return true;
} }


MyGui.java



package assets.testmod.src;

import net.minecraft.client.gui.GuiScreen;

public class MyGui extends GuiScreen
{
public MyGui(){
super();
}
@Override
public void initGui() {
super.initGui();
}
@Override
protected void keyTyped(char par1, int par2){
if (par2 == 1 || par2 == this.mc.gameSettings.keyBindInventory.keyCode)
{
this.mc.thePlayer.closeScreen();
}
}
public boolean doesGuiPauseGame()
{
return false;
}
}




ContainerStorage.java


package assets.testmod.src;

import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.Container;
import net.minecraft.inventory.Slot;
import net.minecraft.item.ItemStack;

public class ContainerStorage extends Container{
private TileEntityStorage te;

private int slotID = 0;

public ContainerStorage(TileEntityStorage te, EntityPlayer player)
{
this.te = te;
//Хранение
for (int i = 0; i < 3; i++)
{
for (int j = 0; j < 5; j++)
{
addSlotToContainer(new Slot(te, slotID++, 44 + j * 18, 17 + i * 18));
}
}

//Инвентарь
for (int i = 0; i < 3; i++)
{
for (int j = 0; j < 9; j++)
{
addSlotToContainer(new Slot(player.inventory, j + i * 9 + 9, 8 + j * 18, 84 + i * 18));
}
}
//Хотбар
for (int i = 0; i < 9; i++)
{
addSlotToContainer(new Slot(player.inventory, i, 8 + i * 18, 142));
}
}

@Override
public ItemStack transferStackInSlot(EntityPlayer player, int slotRaw)
{
ItemStack stack = null;
Slot slot = (Slot)inventorySlots.get(slotRaw);

if (slot != null && slot.getHasStack())
{
ItemStack stackInSlot = slot.getStack();
stack = stackInSlot.copy();

if (slotRaw < 3 * 9)
{
if (!mergeItemStack(stackInSlot, 3 * 9, inventorySlots.size(), true))
{
return null;
}
}
else if (!mergeItemStack(stackInSlot, 0, 3 * 9, false))
{
return null;
}

if (stackInSlot.stackSize == 0)
{
slot.putStack((ItemStack)null);
}
else
{
slot.onSlotChanged();
}
}
return stack;
}

@Override
public boolean canInteractWith(EntityPlayer player)
{
return te.isUseableByPlayer(player);
}
}


BlockStorage.java





package assets.testmod.src;

import java.util.ArrayList;
import java.util.Random;

import com.jcraft.jorbis.Block;

import cpw.mods.fml.common.registry.GameRegistry;
import net.minecraft.block.BlockContainer;
import net.minecraft.block.material.Material;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.item.EntityItem;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.tileentity.TileEntityChest;
import net.minecraft.world.World;

public class BlockStorage extends BlockContainer {

private static final String name = "storage";

private final Random rand = new Random();




protected BlockStorage(int par1) {
super(par1,Material.wood);
this.setCreativeTab(CreativeTabs.tabDecorations);
GameRegistry.registerBlock(this, name);
}




@Override
public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int side, float lx, float ly, float lz)
{
if (world.isRemote) return true;

TileEntity te = world.getBlockTileEntity(x, y, z);
if (te != null && te instanceof TileEntityChest)
{
player.openGui(TestMod.mod, 0, world, x, y, z);
return true;
}
return false;
}

public void breakBlock(World world, int x, int y, int z, Block block, int par6)
{
if (world.isRemote) return;

ArrayList drops = new ArrayList();

TileEntity teRaw = world.getBlockTileEntity(x, y, z);

if (teRaw != null && teRaw instanceof TileEntityChest)
{
TileEntityChest te = (TileEntityChest) teRaw;

for (int i = 0; i < te.getSizeInventory(); i++)
{
ItemStack stack = te.getStackInSlot(i);

if (stack != null) drops.add(stack.copy());
}
}

for (int i = 0;i < drops.size();i++)
{
EntityItem item = new EntityItem(world, x + 0.5, y + 0.5, z + 0.5, (ItemStack) drops.get(i));
item.setVelocity((rand.nextDouble() - 0.5) * 0.25, rand.nextDouble() * 0.5 * 0.25, (rand.nextDouble() - 0.5) * 0.25);
world.spawnEntityInWorld(item);
}
}

public TileEntity createNewTileEntity(World world)
{
return new TileEntityChest();
} }
 
Краш-лог
2018-12-30 22:13:19 [INFO] [STDOUT] ---- Minecraft Crash Report ----
2018-12-30 22:13:19 [INFO] [STDOUT] // I feel sad now :(
2018-12-30 22:13:19 [INFO] [STDOUT]
2018-12-30 22:13:19 [INFO] [STDOUT] Time: 30.12.18 22:13
2018-12-30 22:13:19 [INFO] [STDOUT] Description: Ticking memory connection
2018-12-30 22:13:19 [INFO] [STDOUT]
2018-12-30 22:13:19 [INFO] [STDOUT] java.lang.ClassCastException: net.minecraft.tileentity.TileEntityChest cannot be cast to assets.testmod.src.TileEntityStorage
2018-12-30 22:13:19 [INFO] [STDOUT] at assets.testmod.src.GuiHandler.getServerGuiElement(GuiHandler.java:20)
2018-12-30 22:13:19 [INFO] [STDOUT] at cpw.mods.fml.common.network.NetworkRegistry.openRemoteGui(NetworkRegistry.java:308)
2018-12-30 22:13:19 [INFO] [STDOUT] at cpw.mods.fml.common.network.FMLNetworkHandler.openGui(FMLNetworkHandler.java:353)
2018-12-30 22:13:19 [INFO] [STDOUT] at net.minecraft.entity.player.EntityPlayer.openGui(EntityPlayer.java:2480)
2018-12-30 22:13:19 [INFO] [STDOUT] at assets.testmod.src.BlockStorage.onBlockActivated(BlockStorage.java:45)
2018-12-30 22:13:19 [INFO] [STDOUT] at net.minecraft.item.ItemInWorldManager.activateBlockOrUseItem(ItemInWorldManager.java:421)
2018-12-30 22:13:19 [INFO] [STDOUT] at net.minecraft.network.NetServerHandler.handlePlace(NetServerHandler.java:556)
2018-12-30 22:13:19 [INFO] [STDOUT] at net.minecraft.network.packet.Packet15Place.processPacket(Packet15Place.java:79)
2018-12-30 22:13:19 [INFO] [STDOUT] at net.minecraft.network.MemoryConnection.processReadPackets(MemoryConnection.java:89)
2018-12-30 22:13:19 [INFO] [STDOUT] at net.minecraft.network.NetServerHandler.networkTick(NetServerHandler.java:141)
2018-12-30 22:13:19 [INFO] [STDOUT] at net.minecraft.network.NetworkListenThread.networkTick(NetworkListenThread.java:54)
2018-12-30 22:13:19 [INFO] [STDOUT] at net.minecraft.server.integrated.IntegratedServerListenThread.networkTick(IntegratedServerListenThread.java:109)
2018-12-30 22:13:19 [INFO] [STDOUT] at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:691)
2018-12-30 22:13:19 [INFO] [STDOUT] at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:587)
2018-12-30 22:13:19 [INFO] [STDOUT] at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:129)
2018-12-30 22:13:19 [INFO] [STDOUT] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:484)
2018-12-30 22:13:19 [INFO] [STDOUT] at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)
2018-12-30 22:13:19 [INFO] [STDOUT]
2018-12-30 22:13:19 [INFO] [STDOUT]
2018-12-30 22:13:19 [INFO] [STDOUT] A detailed walkthrough of the error, its code path and all known details is as follows:
2018-12-30 22:13:19 [INFO] [STDOUT] ---------------------------------------------------------------------------------------
2018-12-30 22:13:19 [INFO] [STDOUT]
2018-12-30 22:13:19 [INFO] [STDOUT] -- Head --
2018-12-30 22:13:19 [INFO] [STDOUT] Stacktrace:
2018-12-30 22:13:19 [INFO] [STDOUT] at assets.testmod.src.GuiHandler.getServerGuiElement(GuiHandler.java:20)
2018-12-30 22:13:19 [INFO] [STDOUT] at cpw.mods.fml.common.network.NetworkRegistry.openRemoteGui(NetworkRegistry.java:308)
2018-12-30 22:13:19 [INFO] [STDOUT] at cpw.mods.fml.common.network.FMLNetworkHandler.openGui(FMLNetworkHandler.java:353)
2018-12-30 22:13:19 [INFO] [STDOUT] at net.minecraft.entity.player.EntityPlayer.openGui(EntityPlayer.java:2480)
2018-12-30 22:13:19 [INFO] [STDOUT] at assets.testmod.src.BlockStorage.onBlockActivated(BlockStorage.java:45)
2018-12-30 22:13:19 [INFO] [STDOUT] at net.minecraft.item.ItemInWorldManager.activateBlockOrUseItem(ItemInWorldManager.java:421)
2018-12-30 22:13:19 [INFO] [STDOUT] at net.minecraft.network.NetServerHandler.handlePlace(NetServerHandler.java:556)
2018-12-30 22:13:19 [INFO] [STDOUT] at net.minecraft.network.packet.Packet15Place.processPacket(Packet15Place.java:79)
2018-12-30 22:13:19 [INFO] [STDOUT] at net.minecraft.network.MemoryConnection.processReadPackets(MemoryConnection.java:89)
2018-12-30 22:13:19 [INFO] [STDOUT] at net.minecraft.network.NetServerHandler.networkTick(NetServerHandler.java:141)
2018-12-30 22:13:19 [INFO] [STDOUT]
2018-12-30 22:13:19 [INFO] [STDOUT] -- Ticking connection --
2018-12-30 22:13:19 [INFO] [STDOUT] Details:
2018-12-30 22:13:19 [INFO] [STDOUT] Connection: net.minecraft.network.NetServerHandler@13764aab
2018-12-30 22:13:19 [INFO] [STDOUT] Stacktrace:
2018-12-30 22:13:19 [INFO] [STDOUT] at net.minecraft.network.NetworkListenThread.networkTick(NetworkListenThread.java:54)
2018-12-30 22:13:19 [INFO] [STDOUT] at net.minecraft.server.integrated.IntegratedServerListenThread.networkTick(IntegratedServerListenThread.java:109)
2018-12-30 22:13:19 [INFO] [STDOUT] at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:691)
2018-12-30 22:13:19 [INFO] [STDOUT] at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:587)
2018-12-30 22:13:19 [INFO] [STDOUT] at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:129)
2018-12-30 22:13:19 [INFO] [STDOUT] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:484)
2018-12-30 22:13:19 [INFO] [STDOUT] at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)
2018-12-30 22:13:19 [INFO] [STDOUT]
2018-12-30 22:13:19 [INFO] [STDOUT] -- System Details --
2018-12-30 22:13:19 [INFO] [STDOUT] Details:
2018-12-30 22:13:19 [INFO] [STDOUT] Minecraft Version: 1.6.4
2018-12-30 22:13:19 [INFO] [STDOUT] Operating System: Windows 7 (amd64) version 6.1
2018-12-30 22:13:19 [INFO] [STDOUT] Java Version: 1.8.0_45, Oracle Corporation
2018-12-30 22:13:19 [INFO] [STDOUT] Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
2018-12-30 22:13:19 [INFO] [STDOUT] Memory: 651198360 bytes (621 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB)
2018-12-30 22:13:19 [INFO] [STDOUT] JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
2018-12-30 22:13:19 [INFO] [STDOUT] AABB Pool Size: 2284 (127904 bytes; 0 MB) allocated, 2143 (120008 bytes; 0 MB) used
2018-12-30 22:13:19 [INFO] [STDOUT] Suspicious classes: FML and Forge are installed
2018-12-30 22:13:19 [INFO] [STDOUT] IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
2018-12-30 22:13:19 [INFO] [STDOUT] FML: MCP v8.11 FML v6.4.50.1,345 Minecraft Forge 9.11.1.1345 7 mods loaded, 7 mods active
2018-12-30 22:13:19 [INFO] [STDOUT] mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
2018-12-30 22:13:19 [INFO] [STDOUT] FML{6.4.50.1,345} [Forge Mod Loader] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
2018-12-30 22:13:19 [INFO] [STDOUT] Forge{9.11.1.1345} [Minecraft Forge] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
2018-12-30 22:13:19 [INFO] [STDOUT] CodeChickenCore{0.9.0.9} [CodeChicken Core] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
2018-12-30 22:13:19 [INFO] [STDOUT] NotEnoughItems{1.6.1.9} [Not Enough Items] (NotEnoughItems-1.6.4-1.6.1.9-universal.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
2018-12-30 22:13:19 [INFO] [STDOUT] TestMod{1.0.0} [TestMod] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
2018-12-30 22:13:19 [INFO] [STDOUT] IC2{2.0.397-experimental} [IndustrialCraft 2] (industrialcraft-2-dev-deobf_2.0.397-experimental.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
2018-12-30 22:13:19 [INFO] [STDOUT] Profiler Position: N/A (disabled)
2018-12-30 22:13:19 [INFO] [STDOUT] Vec3 Pool Size: 1553 (86968 bytes; 0 MB) allocated, 877 (49112 bytes; 0 MB) used
2018-12-30 22:13:19 [INFO] [STDOUT] Player Count: 1 / 8; [EntityPlayerMP['Player510'/121, l='New World', x=1220,70, y=10,60, z=-49,36]]
2018-12-30 22:13:19 [INFO] [STDOUT] Type: Integrated Server (map_client.txt)
2018-12-30 22:13:19 [INFO] [STDOUT] Is Modded: Definitely; Client brand changed to 'fml,forge'
Краш-лог:
2018-12-30 22:13:19 [INFO] [STDOUT] ---- Minecraft Crash Report ----
2018-12-30 22:13:19 [INFO] [STDOUT] // I feel sad now :(
2018-12-30 22:13:19 [INFO] [STDOUT] 
2018-12-30 22:13:19 [INFO] [STDOUT] Time: 30.12.18 22:13
2018-12-30 22:13:19 [INFO] [STDOUT] Description: Ticking memory connection
2018-12-30 22:13:19 [INFO] [STDOUT] 
2018-12-30 22:13:19 [INFO] [STDOUT] java.lang.ClassCastException: net.minecraft.tileentity.TileEntityChest cannot be cast to assets.testmod.src.TileEntityStorage
2018-12-30 22:13:19 [INFO] [STDOUT] 	at assets.testmod.src.GuiHandler.getServerGuiElement(GuiHandler.java:20)
2018-12-30 22:13:19 [INFO] [STDOUT] 	at cpw.mods.fml.common.network.NetworkRegistry.openRemoteGui(NetworkRegistry.java:308)
2018-12-30 22:13:19 [INFO] [STDOUT] 	at cpw.mods.fml.common.network.FMLNetworkHandler.openGui(FMLNetworkHandler.java:353)
2018-12-30 22:13:19 [INFO] [STDOUT] 	at net.minecraft.entity.player.EntityPlayer.openGui(EntityPlayer.java:2480)
2018-12-30 22:13:19 [INFO] [STDOUT] 	at assets.testmod.src.BlockStorage.onBlockActivated(BlockStorage.java:45)
2018-12-30 22:13:19 [INFO] [STDOUT] 	at net.minecraft.item.ItemInWorldManager.activateBlockOrUseItem(ItemInWorldManager.java:421)
2018-12-30 22:13:19 [INFO] [STDOUT] 	at net.minecraft.network.NetServerHandler.handlePlace(NetServerHandler.java:556)
2018-12-30 22:13:19 [INFO] [STDOUT] 	at net.minecraft.network.packet.Packet15Place.processPacket(Packet15Place.java:79)
2018-12-30 22:13:19 [INFO] [STDOUT] 	at net.minecraft.network.MemoryConnection.processReadPackets(MemoryConnection.java:89)
2018-12-30 22:13:19 [INFO] [STDOUT] 	at net.minecraft.network.NetServerHandler.networkTick(NetServerHandler.java:141)
2018-12-30 22:13:19 [INFO] [STDOUT] 	at net.minecraft.network.NetworkListenThread.networkTick(NetworkListenThread.java:54)
2018-12-30 22:13:19 [INFO] [STDOUT] 	at net.minecraft.server.integrated.IntegratedServerListenThread.networkTick(IntegratedServerListenThread.java:109)
2018-12-30 22:13:19 [INFO] [STDOUT] 	at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:691)
2018-12-30 22:13:19 [INFO] [STDOUT] 	at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:587)
2018-12-30 22:13:19 [INFO] [STDOUT] 	at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:129)
2018-12-30 22:13:19 [INFO] [STDOUT] 	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:484)
2018-12-30 22:13:19 [INFO] [STDOUT] 	at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)
2018-12-30 22:13:19 [INFO] [STDOUT] 
2018-12-30 22:13:19 [INFO] [STDOUT] 
2018-12-30 22:13:19 [INFO] [STDOUT] A detailed walkthrough of the error, its code path and all known details is as follows:
2018-12-30 22:13:19 [INFO] [STDOUT] ---------------------------------------------------------------------------------------
2018-12-30 22:13:19 [INFO] [STDOUT] 
2018-12-30 22:13:19 [INFO] [STDOUT] -- Head --
2018-12-30 22:13:19 [INFO] [STDOUT] Stacktrace:
2018-12-30 22:13:19 [INFO] [STDOUT] 	at assets.testmod.src.GuiHandler.getServerGuiElement(GuiHandler.java:20)
2018-12-30 22:13:19 [INFO] [STDOUT] 	at cpw.mods.fml.common.network.NetworkRegistry.openRemoteGui(NetworkRegistry.java:308)
2018-12-30 22:13:19 [INFO] [STDOUT] 	at cpw.mods.fml.common.network.FMLNetworkHandler.openGui(FMLNetworkHandler.java:353)
2018-12-30 22:13:19 [INFO] [STDOUT] 	at net.minecraft.entity.player.EntityPlayer.openGui(EntityPlayer.java:2480)
2018-12-30 22:13:19 [INFO] [STDOUT] 	at assets.testmod.src.BlockStorage.onBlockActivated(BlockStorage.java:45)
2018-12-30 22:13:19 [INFO] [STDOUT] 	at net.minecraft.item.ItemInWorldManager.activateBlockOrUseItem(ItemInWorldManager.java:421)
2018-12-30 22:13:19 [INFO] [STDOUT] 	at net.minecraft.network.NetServerHandler.handlePlace(NetServerHandler.java:556)
2018-12-30 22:13:19 [INFO] [STDOUT] 	at net.minecraft.network.packet.Packet15Place.processPacket(Packet15Place.java:79)
2018-12-30 22:13:19 [INFO] [STDOUT] 	at net.minecraft.network.MemoryConnection.processReadPackets(MemoryConnection.java:89)
2018-12-30 22:13:19 [INFO] [STDOUT] 	at net.minecraft.network.NetServerHandler.networkTick(NetServerHandler.java:141)
2018-12-30 22:13:19 [INFO] [STDOUT] 
2018-12-30 22:13:19 [INFO] [STDOUT] -- Ticking connection --
2018-12-30 22:13:19 [INFO] [STDOUT] Details:
2018-12-30 22:13:19 [INFO] [STDOUT] 	Connection: net.minecraft.network.NetServerHandler@13764aab
2018-12-30 22:13:19 [INFO] [STDOUT] Stacktrace:
2018-12-30 22:13:19 [INFO] [STDOUT] 	at net.minecraft.network.NetworkListenThread.networkTick(NetworkListenThread.java:54)
2018-12-30 22:13:19 [INFO] [STDOUT] 	at net.minecraft.server.integrated.IntegratedServerListenThread.networkTick(IntegratedServerListenThread.java:109)
2018-12-30 22:13:19 [INFO] [STDOUT] 	at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:691)
2018-12-30 22:13:19 [INFO] [STDOUT] 	at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:587)
2018-12-30 22:13:19 [INFO] [STDOUT] 	at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:129)
2018-12-30 22:13:19 [INFO] [STDOUT] 	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:484)
2018-12-30 22:13:19 [INFO] [STDOUT] 	at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)
2018-12-30 22:13:19 [INFO] [STDOUT] 
2018-12-30 22:13:19 [INFO] [STDOUT] -- System Details --
2018-12-30 22:13:19 [INFO] [STDOUT] Details:
2018-12-30 22:13:19 [INFO] [STDOUT] 	Minecraft Version: 1.6.4
2018-12-30 22:13:19 [INFO] [STDOUT] 	Operating System: Windows 7 (amd64) version 6.1
2018-12-30 22:13:19 [INFO] [STDOUT] 	Java Version: 1.8.0_45, Oracle Corporation
2018-12-30 22:13:19 [INFO] [STDOUT] 	Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
2018-12-30 22:13:19 [INFO] [STDOUT] 	Memory: 651198360 bytes (621 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB)
2018-12-30 22:13:19 [INFO] [STDOUT] 	JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
2018-12-30 22:13:19 [INFO] [STDOUT] 	AABB Pool Size: 2284 (127904 bytes; 0 MB) allocated, 2143 (120008 bytes; 0 MB) used
2018-12-30 22:13:19 [INFO] [STDOUT] 	Suspicious classes: FML and Forge are installed
2018-12-30 22:13:19 [INFO] [STDOUT] 	IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
2018-12-30 22:13:19 [INFO] [STDOUT] 	FML: MCP v8.11 FML v6.4.50.1,345 Minecraft Forge 9.11.1.1345 7 mods loaded, 7 mods active
2018-12-30 22:13:19 [INFO] [STDOUT] 	mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
2018-12-30 22:13:19 [INFO] [STDOUT] 	FML{6.4.50.1,345} [Forge Mod Loader] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
2018-12-30 22:13:19 [INFO] [STDOUT] 	Forge{9.11.1.1345} [Minecraft Forge] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
2018-12-30 22:13:19 [INFO] [STDOUT] 	CodeChickenCore{0.9.0.9} [CodeChicken Core] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
2018-12-30 22:13:19 [INFO] [STDOUT] 	NotEnoughItems{1.6.1.9} [Not Enough Items] (NotEnoughItems-1.6.4-1.6.1.9-universal.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
2018-12-30 22:13:19 [INFO] [STDOUT] 	TestMod{1.0.0} [TestMod] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
2018-12-30 22:13:19 [INFO] [STDOUT] 	IC2{2.0.397-experimental} [IndustrialCraft 2] (industrialcraft-2-dev-deobf_2.0.397-experimental.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
2018-12-30 22:13:19 [INFO] [STDOUT] 	Profiler Position: N/A (disabled)
2018-12-30 22:13:19 [INFO] [STDOUT] 	Vec3 Pool Size: 1553 (86968 bytes; 0 MB) allocated, 877 (49112 bytes; 0 MB) used
2018-12-30 22:13:19 [INFO] [STDOUT] 	Player Count: 1 / 8; [EntityPlayerMP['Player510'/121, l='New World', x=1220,70, y=10,60, z=-49,36]]
2018-12-30 22:13:19 [INFO] [STDOUT] 	Type: Integrated Server (map_client.txt)
2018-12-30 22:13:19 [INFO] [STDOUT] 	Is Modded: Definitely; Client brand changed to 'fml,forge'

timaxa007

Модератор
5,831
409
672
Точно не знаю. Могу только посоветовать в ContainerStorage:
Убери 11 строчу, ты ей только в одном месте используешь.
После 15 написать типа "int slotID = 0;", т.е. эта переменная должна стать локальной.
В методе transferStackInSlot, сменить "3 * 9" на "3 * 5".
 
Точно не знаю. Могу только посоветовать в ContainerStorage:
Убери 11 строчу, ты ей только в одном месте используешь.
После 15 написать типа "int slotID = 0;", т.е. эта переменная должна стать локальной.
В методе transferStackInSlot, сменить "3 * 9" на "3 * 5".
Выдает ту же ошибку. Это мой первый код, делал по гайду на сайте(
java.lang.ArrayIndexOutOfBoundsException: 15
 
Сверху