Jump to content

[solved]1.7.10 - Game crahses when r-clicking on custom furnace


Recommended Posts

Posted

I've recently followed a tutorial which shows how to create a custom furnace in Minecraft 1.7.X. It looks good until I right-click on the block itself and the game crashes. Even on another , newer, computer the game crashes. I've researched this error but I can't seem to fix the problem.

 

Here is the code of the class where the error happens.

 

 

package com.DBdata.Main;

 

import java.util.Random;

 

import com.DBdata.Main.render.tile_entity.TileEntityRedstoneOven;

import com.DBdata.lib.RefStrings;

 

import net.minecraft.block.Block;

import net.minecraft.block.BlockContainer;

import net.minecraft.block.material.Material;

import net.minecraft.client.renderer.texture.IIconRegister;

import net.minecraft.entity.EntityLivingBase;

import net.minecraft.entity.item.EntityItem;

import net.minecraft.entity.player.EntityPlayer;

import net.minecraft.item.Item;

import net.minecraft.item.ItemStack;

import net.minecraft.nbt.NBTTagCompound;

import net.minecraft.tileentity.TileEntity;

import net.minecraft.util.IIcon;

import net.minecraft.util.MathHelper;

import net.minecraft.world.World;

import cpw.mods.fml.common.network.internal.FMLNetworkHandler;

import cpw.mods.fml.relauncher.Side;

import cpw.mods.fml.relauncher.SideOnly;

 

public class RedstoneOven extends BlockContainer {

 

private final boolean isActive;

 

@SideOnly(Side.CLIENT)

private IIcon iconFront;

 

@SideOnly(Side.CLIENT)

private IIcon iconTop;

 

private static boolean keepInventory;

private Random rand = new Random();

 

public RedstoneOven(boolean isActive) {

super(Material.rock);

 

this.isActive = isActive;

}

 

@SideOnly(Side.CLIENT)

public void registerBlockIcons(IIconRegister iconRegister) {

this.blockIcon = iconRegister.registerIcon(RefStrings.MODID + ":" + "redOvenSide");

this.iconFront = iconRegister.registerIcon(RefStrings.MODID + ":" + (this.isActive ? "redOvenFrontOn" : "redOvenFrontOff"));

this.iconTop = iconRegister.registerIcon(RefStrings.MODID + ":" + "redOvenTop");

}

 

@SideOnly(Side.CLIENT)

public IIcon getIcon(int side, int metadata) {

return metadata == 0 && side == 3 ? this.iconFront : side == 1 ? this.iconTop : (side == 0 ? this.iconTop : (side == metadata ? this.iconFront : this.blockIcon));

//return side == 1 ? this.iconTop : (side == 0 ? this.iconTop : (side != metadata ? this.blockIcon : this.iconFront));

}

 

public Item getItemDropped(int i, Random random, int j) {

return Item.getItemFromBlock(MainRegistry.redOven);

}

 

public void onBlockAdded(World world, int x, int y, int z) {

super.onBlockAdded(world, x, y, z);

this.setDefaultDirection(world, x, y, z);

}

 

private void setDefaultDirection(World world, int x, int y, int z) {

if(!world.isRemote) {

Block b1 = world.getBlock(x, y, z - 1);

Block b2 = world.getBlock(x,  y,  z + 1);

Block b3 = world.getBlock(x - 1, y, z);

Block b4  = world.getBlock(x + 1, y, z);

 

byte b0 = 3;

 

if(b1.func_149730_j() && !b2.func_149730_j()) {

b0 = 3;

}

 

if(b2.func_149730_j() && !b1.func_149730_j()) {

b0 = 2;

}

 

if(b3.func_149730_j() && !b4.func_149730_j()) {

b0 = 5;

}

 

if(b4.func_149730_j() && !b3.func_149730_j()) {

b0 = 4;

}

 

world.setBlockMetadataWithNotify(x, y, x, b0, 2);

}

 

}

 

public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int side, float hitX, float hitY, float hitZ) {

if(!world.isRemote) {

FMLNetworkHandler.openGui(player, MainRegistry.instance, MainRegistry.guiIDredOven, world, x, y, z);

}

return true;

}

 

@Override

public TileEntity createNewTileEntity(World world, int i) {

return new TileEntityRedstoneOven();

}

 

@SideOnly(Side.CLIENT)

public void randomDisplayTick(World world, int x, int y, int z, Random random) {

if(this.isActive) {

int direction = world.getBlockMetadata(x, y, z);

 

float x1 = (float)x + 0.5F;

float y1 = (float)y + random.nextFloat();

float z1 = (float)z + 0.5F;

 

float f = 0.52F;

float f1 = random.nextFloat() * 0.6F - 0.3F;

 

if(direction == 4){

world.spawnParticle("smoke", (double)(x1 - f), (double)(y1), (double)(z1 + f1), 0D, 0D, 0D);

world.spawnParticle("flame", (double)(x1 - f), (double)(y1), (double)(z1 + f1), 0D, 0D, 0D);

}

 

if(direction == 5){

world.spawnParticle("smoke", (double)(x1 + f), (double)(y1), (double)(z1 + f1), 0D, 0D, 0D);

world.spawnParticle("flame", (double)(x1 + f), (double)(y1), (double)(z1 + f1), 0D, 0D, 0D);

}

 

if(direction == 2){

world.spawnParticle("smoke", (double)(x1 + f1), (double)(y1), (double)(z1 - f), 0D, 0D, 0D);

world.spawnParticle("flame", (double)(x1 + f1), (double)(y1), (double)(z1 - f), 0D, 0D, 0D);

}

 

if(direction == 3){

world.spawnParticle("smoke", (double)(x1 + f1), (double)(y1), (double)(z1 + f), 0D, 0D, 0D);

world.spawnParticle("flame", (double)(x1 + f1), (double)(y1), (double)(z1 + f), 0D, 0D, 0D);

}

}

}

 

public void onBlockPlacedBy(World world, int x, int y, int z, EntityLivingBase entityplayer, ItemStack itemstack) {

int l = MathHelper.floor_double((double)(entityplayer.rotationYaw * 4.0F / 360.F) + 0.5D) & 3;

 

if(l == 0) {

world.setBlockMetadataWithNotify(x, y, z, 2, 2);

}

 

if(l == 1) {

world.setBlockMetadataWithNotify(x, y, z, 5, 2);

}

 

if(l == 2) {

world.setBlockMetadataWithNotify(x, y, z, 3, 2);

}

 

if(l == 3) {

world.setBlockMetadataWithNotify(x, y, z, 4, 2);

}

 

if(itemstack.hasDisplayName()) {

((TileEntityRedstoneOven)world.getTileEntity(x, y, z)).setGuiDisplayName(itemstack.getDisplayName());

}

}

 

public static void updateRedstoneOvenBlockState(boolean active, World worldObj, int xCoord, int yCoord, int zCoord) {

int i = worldObj.getBlockMetadata(xCoord, yCoord, zCoord);

 

TileEntity tileentity = worldObj.getTileEntity(xCoord, yCoord, zCoord);

keepInventory = true;

 

if(active) {

worldObj.setBlock(xCoord, yCoord, zCoord, MainRegistry.redOvenActive);

}else{

worldObj.setBlock(xCoord, yCoord, zCoord, MainRegistry.redOven);

}

 

keepInventory = false;

 

worldObj.setBlockMetadataWithNotify(xCoord, yCoord, zCoord, i, 2);

 

if(tileentity != null) {

tileentity.validate();

worldObj.setTileEntity(xCoord, yCoord, zCoord, tileentity);

}

}

 

public void breakBlock(World world, int x, int y, int z, Block oldblock, int oldMetadata) {

if(!keepInventory) {

TileEntityRedstoneOven tileentity = (TileEntityRedstoneOven) world.getTileEntity(x, y, z);

 

if(tileentity != null) {

for(int i = 0; i < tileentity.getSizeInventory(); i++) {

ItemStack itemstack = tileentity.getStackInSlot(i);

 

if(itemstack != null) {

float f = this.rand.nextFloat() * 0.8F + 0.1F;

float f1 = this.rand.nextFloat() * 0.8F + 0.1F;

float f2 = this.rand.nextFloat() * 0.8F + 0.1F;

 

while(itemstack.stackSize > 0) {

int j = this.rand.nextInt(21) + 10;

 

if(j > itemstack.stackSize) {

j = itemstack.stackSize;

}

 

itemstack.stackSize -= j;

 

EntityItem item = new EntityItem(world, (double)((float)x + f), (double)((float)y + f1), (double)((float)z + f2), new ItemStack(itemstack.getItem(), j, itemstack.getItemDamage()));

 

if(itemstack.hasTagCompound()) {

item.getEntityItem().setTagCompound((NBTTagCompound)itemstack.getTagCompound().copy());

}

 

world.spawnEntityInWorld(item);

}

}

}

 

world.func_147453_f(x, y, z, oldblock);

}

}

 

super.breakBlock(world, x, y, z, oldblock, oldMetadata);

}

 

public Item getItem(World world, int x, int y, int z) {

return Item.getItemFromBlock(MainRegistry.redOven);

}

 

}

 

 

 

The line where the error occurs is:

FMLNetworkHandler.openGui(player, MainRegistry.instance, MainRegistry.guiIDredOven, world, x, y, z);

 

Here is the log as well:

 

 

[21:26:53] [main/INFO] [GradleStart]: Extra: []

[21:26:53] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/David/.gradle/caches/minecraft/assets, --assetIndex, 1.7.10, --accessToken, {REDACTED}, --version, 1.7.10, --tweakClass, cpw.mods.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]

[21:26:53] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker

[21:26:53] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker

[21:26:53] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker

[21:26:53] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker

[21:26:53] [main/INFO] [FML]: Forge Mod Loader version 7.99.16.1448 for Minecraft 1.7.10 loading

[21:26:53] [main/INFO] [FML]: Java is Java HotSpot 64-Bit Server VM, version 1.8.0_51, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jre1.8.0_51

[21:26:53] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation

[21:26:53] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker

[21:26:53] [main/INFO] [GradleStart]: Injecting location in coremod cpw.mods.fml.relauncher.FMLCorePlugin

[21:26:53] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin

[21:26:53] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker

[21:26:54] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker

[21:26:54] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker

[21:26:54] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker

[21:26:54] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker

[21:26:54] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper

[21:26:54] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!

[21:26:57] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing

[21:26:57] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper

[21:26:57] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker

[21:26:57] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker

[21:26:57] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.TerminalTweaker

[21:26:57] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.TerminalTweaker

[21:26:57] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}

[21:26:59] [main/INFO]: Setting user: Player75

[21:27:00] [Client thread/INFO]: LWJGL Version: 2.9.1

[21:27:04] [Client thread/INFO] [sTDOUT]: [cpw.mods.fml.client.SplashProgress:start:188]: ---- Minecraft Crash Report ----

// This doesn't make any sense!

 

Time: 05/08/15 21:27

Description: Loading screen debug info

 

This is just a prompt for computer specs to be printed. THIS IS NOT A ERROR

 

 

A detailed walkthrough of the error, its code path and all known details is as follows:

---------------------------------------------------------------------------------------

 

-- System Details --

Details:

Minecraft Version: 1.7.10

Operating System: Windows 7 (amd64) version 6.1

Java Version: 1.8.0_51, Oracle Corporation

Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Oracle Corporation

Memory: 939697648 bytes (896 MB) / 1056309248 bytes (1007 MB) up to 1056309248 bytes (1007 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: 0, tallocated: 0

FML:

GL info: ' Vendor: 'Intel' Version: '1.4.0 - Build 8.14.10.1930' Renderer: 'Intel Bear Lake B'

[21:27:04] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization

[21:27:04] [Client thread/INFO] [FML]: MinecraftForge v10.13.4.1448 Initialized

[21:27:04] [Client thread/INFO] [FML]: Replaced 183 ore recipies

[21:27:04] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization

[21:27:04] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer

[21:27:04] [Client thread/INFO] [FML]: Searching C:\Users\David\Desktop\Minecraft Mod\DB MOD\eclipse\mods for mods

[21:27:10] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load

[21:27:10] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, dbmod] at CLIENT

[21:27:10] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, dbmod] at SERVER

[21:27:11] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:DB Modification

[21:27:11] [Client thread/INFO] [FML]: Processing ObjectHolder annotations

[21:27:11] [Client thread/INFO] [FML]: Found 341 ObjectHolder annotations

[21:27:11] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations

[21:27:11] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations

[21:27:11] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0

[21:27:11] [Client thread/INFO] [FML]: Applying holder lookups

[21:27:11] [Client thread/INFO] [FML]: Holder lookups applied

[21:27:11] [Client thread/INFO] [FML]: Injecting itemstacks

[21:27:11] [Client thread/INFO] [FML]: Itemstack injection complete

[21:27:12] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:

[21:27:12] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem...

[21:27:12] [Thread-8/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL

[21:27:12] [Thread-8/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:    (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)

[21:27:13] [Thread-8/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.

[21:27:13] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:

[21:27:13] [sound Library Loader/INFO]: Sound engine started

[21:27:15] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas

[21:27:16] [Client thread/INFO]: Created: 512x256 textures/items-atlas

[21:27:16] [Client thread/INFO] [FML]: Injecting itemstacks

[21:27:16] [Client thread/INFO] [FML]: Itemstack injection complete

[21:27:16] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods

[21:27:16] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:DB Modification

[21:27:16] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas

[21:27:17] [Client thread/INFO]: Created: 512x256 textures/items-atlas

[21:27:17] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:

[21:27:17] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: SoundSystem shutting down...

[21:27:17] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:importantMessage:90]:    Author: Paul Lamb, www.paulscode.com

[21:27:17] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:

[21:27:17] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:

[21:27:17] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem...

[21:27:17] [Thread-10/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL

[21:27:17] [Thread-10/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:    (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)

[21:27:17] [Thread-10/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.

[21:27:17] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:

[21:27:17] [sound Library Loader/INFO]: Sound engine started

[21:28:18] [Client thread/ERROR]: ########## GL ERROR ##########

[21:28:18] [Client thread/ERROR]: @ Post render

[21:28:18] [Client thread/ERROR]: 1281: Invalid value

[21:28:35] [Client thread/ERROR]: ########## GL ERROR ##########

[21:28:35] [Client thread/ERROR]: @ Post render

[21:28:35] [Client thread/ERROR]: 1281: Invalid value

[21:28:35] [Client thread/ERROR]: ########## GL ERROR ##########

[21:28:35] [Client thread/ERROR]: @ Post render

[21:28:35] [Client thread/ERROR]: 1281: Invalid value

[21:28:38] [Client thread/ERROR]: ########## GL ERROR ##########

[21:28:38] [Client thread/ERROR]: @ Post render

[21:28:38] [Client thread/ERROR]: 1281: Invalid value

[21:28:46] [server thread/INFO]: Starting integrated minecraft server version 1.7.10

[21:28:46] [server thread/INFO]: Generating keypair

[21:28:47] [server thread/INFO] [FML]: Injecting existing block and item data into this server instance

[21:28:47] [server thread/INFO] [FML]: Applying holder lookups

[21:28:47] [server thread/INFO] [FML]: Holder lookups applied

[21:28:47] [server thread/INFO] [FML]: Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@6018d794)

[21:28:47] [server thread/INFO] [FML]: Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@6018d794)

[21:28:48] [server thread/INFO] [FML]: Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@6018d794)

[21:28:48] [server thread/INFO]: Preparing start region for level 0

[21:28:49] [server thread/INFO]: Preparing spawn area: 30%

[21:28:50] [server thread/INFO]: Preparing spawn area: 95%

[21:28:50] [server thread/INFO]: Changing view distance to 9, from 10

[21:28:52] [Netty Client IO #0/INFO] [FML]: Server protocol version 2

[21:28:52] [Netty IO #1/INFO] [FML]: Client protocol version 2

[21:28:52] [Netty IO #1/INFO] [FML]: Client attempting to join with 4 mods : [email protected],[email protected],[email protected],[email protected]

[21:28:52] [Netty IO #1/INFO] [FML]: Attempting connection with missing mods [] at CLIENT

[21:28:52] [Netty Client IO #0/INFO] [FML]: Attempting connection with missing mods [] at SERVER

[21:28:52] [Client thread/INFO] [FML]: [Client thread] Client side modded connection established

[21:28:52] [server thread/INFO] [FML]: [server thread] Server side modded connection established

[21:28:52] [server thread/INFO]: Player75[local:E:28880c67] logged in with entity id 362 at (26.781176678895363, 66.0, 243.282025997106)

[21:28:52] [server thread/INFO]: Player75 joined the game

[21:28:53] [server thread/INFO]: Saving and pausing game...

[21:28:53] [server thread/INFO]: Saving chunks for level 'New World'/Overworld

[21:28:54] [server thread/INFO]: Saving chunks for level 'New World'/Nether

[21:28:54] [server thread/INFO]: Saving chunks for level 'New World'/The End

[21:28:58] [server thread/ERROR]: Encountered an unexpected exception

net.minecraft.util.ReportedException: Ticking memory connection

at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:198) ~[NetworkSystem.class:?]

at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:726) ~[MinecraftServer.class:?]

at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614) ~[MinecraftServer.class:?]

at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118) ~[integratedServer.class:?]

at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485) [MinecraftServer.class:?]

at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752) [MinecraftServer$2.class:?]

Caused by: java.lang.ClassCastException: com.DBdata.Gui.GuiRedOven cannot be cast to net.minecraft.inventory.Container

at cpw.mods.fml.common.network.NetworkRegistry.getRemoteGuiContainer(NetworkRegistry.java:243) ~[NetworkRegistry.class:?]

at cpw.mods.fml.common.network.internal.FMLNetworkHandler.openGui(FMLNetworkHandler.java:75) ~[FMLNetworkHandler.class:?]

at com.DBdata.Main.RedstoneOven.onBlockActivated(RedstoneOven.java:99) ~[RedstoneOven.class:?]

at net.minecraft.server.management.ItemInWorldManager.activateBlockOrUseItem(ItemInWorldManager.java:409) ~[itemInWorldManager.class:?]

at net.minecraft.network.NetHandlerPlayServer.processPlayerBlockPlacement(NetHandlerPlayServer.java:593) ~[NetHandlerPlayServer.class:?]

at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.processPacket(C08PacketPlayerBlockPlacement.java:74) ~[C08PacketPlayerBlockPlacement.class:?]

at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.processPacket(C08PacketPlayerBlockPlacement.java:122) ~[C08PacketPlayerBlockPlacement.class:?]

at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:241) ~[NetworkManager.class:?]

at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:182) ~[NetworkSystem.class:?]

... 5 more

[21:28:58] [server thread/ERROR]: This crash report has been saved to: C:\Users\David\Desktop\Minecraft Mod\DB MOD\eclipse\.\crash-reports\crash-2015-08-05_21.28.58-server.txt

[21:28:58] [server thread/INFO]: Stopping server

[21:28:59] [server thread/INFO]: Saving players

[21:28:59] [Client thread/INFO] [sTDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:388]: ---- Minecraft Crash Report ----

// There are four lights!

 

Time: 05/08/15 21:28

Description: Ticking memory connection

 

java.lang.ClassCastException: com.DBdata.Gui.GuiRedOven cannot be cast to net.minecraft.inventory.Container

at cpw.mods.fml.common.network.NetworkRegistry.getRemoteGuiContainer(NetworkRegistry.java:243)

at cpw.mods.fml.common.network.internal.FMLNetworkHandler.openGui(FMLNetworkHandler.java:75)

at com.DBdata.Main.RedstoneOven.onBlockActivated(RedstoneOven.java:99)

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 cpw.mods.fml.common.network.NetworkRegistry.getRemoteGuiContainer(NetworkRegistry.java:243)

at cpw.mods.fml.common.network.internal.FMLNetworkHandler.openGui(FMLNetworkHandler.java:75)

at com.DBdata.Main.RedstoneOven.onBlockActivated(RedstoneOven.java:99)

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@6eae4945

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 7 (amd64) version 6.1

Java Version: 1.8.0_51, Oracle Corporation

Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Oracle Corporation

Memory: 875745024 bytes (835 MB) / 1056309248 bytes (1007 MB) up to 1056309248 bytes (1007 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: 13, tcache: 0, allocated: 13, tallocated: 95

FML: MCP v9.05 FML v7.10.99.99 Minecraft Forge 10.13.4.1448 4 mods loaded, 4 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.1448-1.7.10.jar)

UCHIJAAAA Forge{10.13.4.1448} [Minecraft Forge] (forgeSrc-1.7.10-10.13.4.1448-1.7.10.jar)

UCHIJAAAA dbmod{1.0.0} [DB Modification] (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['Player75'/362, l='New World', x=26.78, y=66.00, z=243.28]]

Type: Integrated Server (map_client.txt)

Is Modded: Definitely; Client brand changed to 'fml,forge'

[21:28:59] [Client thread/INFO] [sTDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:393]: #@!@# Game crashed! Crash report saved to: #@!@# .\crash-reports\crash-2015-08-05_21.28.58-server.txt

[21:28:59] [Client thread/INFO] [FML]: Waiting for the server to terminate/save.

[21:28:59] [server thread/INFO]: Saving worlds

[21:28:59] [server thread/INFO]: Saving chunks for level 'New World'/Overworld

[21:28:59] [server thread/INFO]: Saving chunks for level 'New World'/Nether

[21:28:59] [server thread/INFO]: Saving chunks for level 'New World'/The End

[21:29:00] [server thread/INFO] [FML]: Unloading dimension 0

[21:29:00] [server thread/INFO] [FML]: Unloading dimension -1

[21:29:00] [server thread/INFO] [FML]: Unloading dimension 1

[21:29:00] [server thread/INFO] [FML]: Applying holder lookups

[21:29:00] [server thread/INFO] [FML]: Holder lookups applied

[21:29:00] [server thread/INFO] [FML]: The state engine was in incorrect state SERVER_STOPPING and forced into state SERVER_STOPPED. Errors may have been discarded.

[21:29:00] [Client thread/INFO] [FML]: Server terminated.

AL lib: (EE) alc_cleanup: 1 device not closed

Java HotSpot 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release

 

 

 

If anyone needs anymore of the mod's class files then I'll post them. Thanks in advance.  :)

Posted

Thanks for the quick response and concise answer!! I (stupidly) used the wrong function in the getServerGuiElement code. It all works now - thanks very much! ;D

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.