Jump to content

[1.7.10] [SELF-SOLVED] TileEntity won't place down.


Koopamillion

Recommended Posts

I've probably done something stupid, but the tileentity energystorage block wont place a tileentity, or the tileentity dosent even exist :L All help will be very appreciated! Thanks!

 

EDIT - I had meta cases messed up; The case 0 should have been the tier 1 and visaversa

:Crash Report

 

[19:36:30] [main/INFO] [GradleStart]: Extra: []

[19:36:30] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/joshu/.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]

[19:36:30] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker

[19:36:30] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker

[19:36:30] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker

[19:36:30] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker

[19:36:30] [main/INFO] [FML]: Forge Mod Loader version 7.99.16.1448 for Minecraft 1.7.10 loading

[19:36:30] [main/INFO] [FML]: Java is Java HotSpot 64-Bit Server VM, version 1.8.0_73, running on Windows 10:amd64:10.0, installed at C:\Program Files\Java\jre1.8.0_73

[19:36:30] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation

[19:36:30] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker

[19:36:30] [main/INFO] [GradleStart]: Injecting location in coremod cpw.mods.fml.relauncher.FMLCorePlugin

[19:36:30] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin

[19:36:30] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker

[19:36:30] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker

[19:36:30] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker

[19:36:30] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker

[19:36:30] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker

[19:36:30] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper

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

[19:36:31] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing

[19:36:31] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper

[19:36:31] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker

[19:36:31] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker

[19:36:31] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.TerminalTweaker

[19:36:31] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.TerminalTweaker

[19:36:31] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}

[19:36:32] [main/INFO]: Setting user: Player998

[19:36:33] [Client thread/INFO]: LWJGL Version: 2.9.1

[19:36:34] [Client thread/INFO] [sTDOUT]: [cpw.mods.fml.client.SplashProgress:start:188]: ---- Minecraft Crash Report ----

// Everything's going to plan. No, really, that was supposed to happen.

 

Time: 17/03/16 19:36

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

Java Version: 1.8.0_73, Oracle Corporation

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

Memory: 780058264 bytes (743 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 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: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 361.91' Renderer: 'GeForce GTX 950/PCIe/SSE2'

[19:36:34] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization

[19:36:34] [Client thread/INFO] [FML]: MinecraftForge v10.13.4.1448 Initialized

[19:36:34] [Client thread/INFO] [FML]: Replaced 183 ore recipies

[19:36:34] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization

[19:36:34] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer

[19:36:34] [Client thread/INFO] [FML]: Searching C:\Users\joshu\Desktop\mod2\eclipse\mods for mods

[19:36:37] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load

[19:36:37] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, ekoop] at CLIENT

[19:36:37] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, ekoop] at SERVER

[19:36:37] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:E Koop

[19:36:37] [Client thread/INFO] [FML]: Processing ObjectHolder annotations

[19:36:37] [Client thread/INFO] [FML]: Found 341 ObjectHolder annotations

[19:36:37] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations

[19:36:37] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations

[19:36:37] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0

[19:36:38] [Client thread/INFO] [FML]: Applying holder lookups

[19:36:38] [Client thread/INFO] [FML]: Holder lookups applied

[19:36:38] [Client thread/INFO] [FML]: Injecting itemstacks

[19:36:38] [Client thread/INFO] [FML]: Itemstack injection complete

[19:36:38] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:

[19:36:38] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem...

[19:36:38] [Thread-8/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL

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

[19:36:38] [Thread-8/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.

[19:36:38] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:

[19:36:38] [sound Library Loader/INFO]: Sound engine started

[19:36:39] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas

[19:36:39] [Client thread/INFO]: Created: 256x256 textures/items-atlas

[19:36:39] [Client thread/INFO] [FML]: Injecting itemstacks

[19:36:39] [Client thread/INFO] [FML]: Itemstack injection complete

[19:36:39] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods

[19:36:39] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:E Koop

[19:36:40] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas

[19:36:40] [Client thread/INFO]: Created: 256x256 textures/items-atlas

[19:36:40] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:

[19:36:40] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: SoundSystem shutting down...

[19:36:40] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:importantMessage:90]:    Author: Paul Lamb, www.paulscode.com

[19:36:40] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:

[19:36:40] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:

[19:36:40] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem...

[19:36:40] [Thread-10/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL

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

[19:36:40] [Thread-10/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.

[19:36:40] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:

[19:36:40] [sound Library Loader/INFO]: Sound engine started

[19:36:42] [server thread/INFO]: Starting integrated minecraft server version 1.7.10

[19:36:42] [server thread/INFO]: Generating keypair

[19:36:42] [server thread/INFO] [FML]: Injecting existing block and item data into this server instance

[19:36:42] [server thread/INFO] [FML]: Applying holder lookups

[19:36:42] [server thread/INFO] [FML]: Holder lookups applied

[19:36:42] [server thread/INFO] [FML]: Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@2d7fc053)

[19:36:42] [server thread/INFO] [FML]: Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@2d7fc053)

[19:36:42] [server thread/INFO] [FML]: Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@2d7fc053)

[19:36:42] [server thread/INFO]: Preparing start region for level 0

[19:36:43] [Netty Client IO #0/INFO] [FML]: Server protocol version 2

[19:36:43] [Netty IO #1/INFO] [FML]: Client protocol version 2

[19:36:44] [Netty IO #1/INFO] [FML]: Client attempting to join with 4 mods : [email protected],[email protected],[email protected],[email protected]

[19:36:44] [Netty IO #1/INFO] [FML]: Attempting connection with missing mods [] at CLIENT

[19:36:44] [Netty Client IO #0/INFO] [FML]: Attempting connection with missing mods [] at SERVER

[19:36:44] [Client thread/INFO] [FML]: [Client thread] Client side modded connection established

[19:36:44] [server thread/INFO] [FML]: [server thread] Server side modded connection established

[19:36:44] [server thread/INFO]: Player998[local:E:8a1059a0] logged in with entity id 257 at (426.03183570614203, 64.0, 412.5552083929793)

[19:36:44] [server thread/INFO]: Player998 joined the game

[19:36:45] [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.koopamillion.tile_entity.TileEntityCreativeEnergyStorage cannot be cast to com.koopamillion.tile_entity.TileEntityEnergyStorageTier1

at com.koopamillion.blocks.BlockEnergyStorage.onBlockPlacedBy(BlockEnergyStorage.java:94) ~[blockEnergyStorage.class:?]

at net.minecraft.item.ItemBlock.placeBlockAt(ItemBlock.java:239) ~[itemBlock.class:?]

at net.minecraft.item.ItemBlock.onItemUse(ItemBlock.java:116) ~[itemBlock.class:?]

at net.minecraftforge.common.ForgeHooks.onPlaceItemIntoWorld(ForgeHooks.java:507) ~[ForgeHooks.class:?]

at net.minecraft.item.ItemStack.tryPlaceItemIntoWorld(ItemStack.java:142) ~[itemStack.class:?]

at net.minecraft.server.management.ItemInWorldManager.activateBlockOrUseItem(ItemInWorldManager.java:422) ~[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

[19:36:45] [server thread/ERROR]: This crash report has been saved to: C:\Users\joshu\Desktop\mod2\eclipse\.\crash-reports\crash-2016-03-17_19.36.45-server.txt

[19:36:45] [server thread/INFO]: Stopping server

[19:36:45] [server thread/INFO]: Saving players

[19:36:45] [server thread/INFO]: Saving worlds

[19:36:45] [server thread/INFO]: Saving chunks for level 'New World'/Overworld

[19:36:45] [server thread/ERROR] [FML]: A TileEntity type com.koopamillion.tile_entity.TileEntityCreativeEnergyStorage has throw an exception trying to write state. It will not persist. Report this to the mod author

java.lang.RuntimeException: class com.koopamillion.tile_entity.TileEntityCreativeEnergyStorage is missing a mapping! This is a bug!

at net.minecraft.tileentity.TileEntity.writeToNBT(TileEntity.java:96) ~[TileEntity.class:?]

at net.minecraft.world.chunk.storage.AnvilChunkLoader.writeChunkToNBT(AnvilChunkLoader.java:395) [AnvilChunkLoader.class:?]

at net.minecraft.world.chunk.storage.AnvilChunkLoader.saveChunk(AnvilChunkLoader.java:204) [AnvilChunkLoader.class:?]

at net.minecraft.world.gen.ChunkProviderServer.safeSaveChunk(ChunkProviderServer.java:287) [ChunkProviderServer.class:?]

at net.minecraft.world.gen.ChunkProviderServer.saveChunks(ChunkProviderServer.java:340) [ChunkProviderServer.class:?]

at net.minecraft.world.WorldServer.saveAllChunks(WorldServer.java:863) [WorldServer.class:?]

at net.minecraft.server.MinecraftServer.saveAllWorlds(MinecraftServer.java:370) [MinecraftServer.class:?]

at net.minecraft.server.MinecraftServer.stopServer(MinecraftServer.java:405) [MinecraftServer.class:?]

at net.minecraft.server.integrated.IntegratedServer.stopServer(IntegratedServer.java:266) [integratedServer.class:?]

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

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

[19:36:45] [server thread/ERROR] [FML]: A TileEntity type com.koopamillion.tile_entity.TileEntityCreativeEnergyStorage has throw an exception trying to write state. It will not persist. Report this to the mod author

java.lang.RuntimeException: class com.koopamillion.tile_entity.TileEntityCreativeEnergyStorage is missing a mapping! This is a bug!

at net.minecraft.tileentity.TileEntity.writeToNBT(TileEntity.java:96) ~[TileEntity.class:?]

at net.minecraft.world.chunk.storage.AnvilChunkLoader.writeChunkToNBT(AnvilChunkLoader.java:395) [AnvilChunkLoader.class:?]

at net.minecraft.world.chunk.storage.AnvilChunkLoader.saveChunk(AnvilChunkLoader.java:204) [AnvilChunkLoader.class:?]

at net.minecraft.world.gen.ChunkProviderServer.safeSaveChunk(ChunkProviderServer.java:287) [ChunkProviderServer.class:?]

at net.minecraft.world.gen.ChunkProviderServer.saveChunks(ChunkProviderServer.java:340) [ChunkProviderServer.class:?]

at net.minecraft.world.WorldServer.saveAllChunks(WorldServer.java:863) [WorldServer.class:?]

at net.minecraft.server.MinecraftServer.saveAllWorlds(MinecraftServer.java:370) [MinecraftServer.class:?]

at net.minecraft.server.MinecraftServer.stopServer(MinecraftServer.java:405) [MinecraftServer.class:?]

at net.minecraft.server.integrated.IntegratedServer.stopServer(IntegratedServer.java:266) [integratedServer.class:?]

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

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

[19:36:45] [server thread/ERROR] [FML]: A TileEntity type com.koopamillion.tile_entity.TileEntityCreativeEnergyStorage has throw an exception trying to write state. It will not persist. Report this to the mod author

java.lang.RuntimeException: class com.koopamillion.tile_entity.TileEntityCreativeEnergyStorage is missing a mapping! This is a bug!

at net.minecraft.tileentity.TileEntity.writeToNBT(TileEntity.java:96) ~[TileEntity.class:?]

at net.minecraft.world.chunk.storage.AnvilChunkLoader.writeChunkToNBT(AnvilChunkLoader.java:395) [AnvilChunkLoader.class:?]

at net.minecraft.world.chunk.storage.AnvilChunkLoader.saveChunk(AnvilChunkLoader.java:204) [AnvilChunkLoader.class:?]

at net.minecraft.world.gen.ChunkProviderServer.safeSaveChunk(ChunkProviderServer.java:287) [ChunkProviderServer.class:?]

at net.minecraft.world.gen.ChunkProviderServer.saveChunks(ChunkProviderServer.java:340) [ChunkProviderServer.class:?]

at net.minecraft.world.WorldServer.saveAllChunks(WorldServer.java:863) [WorldServer.class:?]

at net.minecraft.server.MinecraftServer.saveAllWorlds(MinecraftServer.java:370) [MinecraftServer.class:?]

at net.minecraft.server.MinecraftServer.stopServer(MinecraftServer.java:405) [MinecraftServer.class:?]

at net.minecraft.server.integrated.IntegratedServer.stopServer(IntegratedServer.java:266) [integratedServer.class:?]

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

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

[19:36:45] [server thread/ERROR] [FML]: A TileEntity type com.koopamillion.tile_entity.TileEntityCreativeEnergyStorage has throw an exception trying to write state. It will not persist. Report this to the mod author

java.lang.RuntimeException: class com.koopamillion.tile_entity.TileEntityCreativeEnergyStorage is missing a mapping! This is a bug!

at net.minecraft.tileentity.TileEntity.writeToNBT(TileEntity.java:96) ~[TileEntity.class:?]

at net.minecraft.world.chunk.storage.AnvilChunkLoader.writeChunkToNBT(AnvilChunkLoader.java:395) [AnvilChunkLoader.class:?]

at net.minecraft.world.chunk.storage.AnvilChunkLoader.saveChunk(AnvilChunkLoader.java:204) [AnvilChunkLoader.class:?]

at net.minecraft.world.gen.ChunkProviderServer.safeSaveChunk(ChunkProviderServer.java:287) [ChunkProviderServer.class:?]

at net.minecraft.world.gen.ChunkProviderServer.saveChunks(ChunkProviderServer.java:340) [ChunkProviderServer.class:?]

at net.minecraft.world.WorldServer.saveAllChunks(WorldServer.java:863) [WorldServer.class:?]

at net.minecraft.server.MinecraftServer.saveAllWorlds(MinecraftServer.java:370) [MinecraftServer.class:?]

at net.minecraft.server.MinecraftServer.stopServer(MinecraftServer.java:405) [MinecraftServer.class:?]

at net.minecraft.server.integrated.IntegratedServer.stopServer(IntegratedServer.java:266) [integratedServer.class:?]

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

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

[19:36:45] [server thread/INFO]: Saving chunks for level 'New World'/Nether

[19:36:45] [server thread/INFO]: Saving chunks for level 'New World'/The End

[19:36:46] [server thread/INFO] [FML]: Unloading dimension 0

[19:36:46] [server thread/INFO] [FML]: Unloading dimension -1

[19:36:46] [server thread/INFO] [FML]: Unloading dimension 1

[19:36:46] [server thread/INFO] [FML]: Applying holder lookups

[19:36:46] [server thread/INFO] [FML]: Holder lookups applied

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

[19:36:46] [Client thread/FATAL]: Unreported exception thrown!

java.lang.ClassCastException: com.koopamillion.tile_entity.TileEntityCreativeEnergyStorage cannot be cast to com.koopamillion.tile_entity.TileEntityEnergyStorageTier1

at com.koopamillion.blocks.BlockEnergyStorage.onBlockPlacedBy(BlockEnergyStorage.java:94) ~[blockEnergyStorage.class:?]

at net.minecraft.item.ItemBlock.placeBlockAt(ItemBlock.java:239) ~[itemBlock.class:?]

at net.minecraft.item.ItemBlock.onItemUse(ItemBlock.java:116) ~[itemBlock.class:?]

at net.minecraft.item.ItemStack.tryPlaceItemIntoWorld(ItemStack.java:143) ~[itemStack.class:?]

at net.minecraft.client.multiplayer.PlayerControllerMP.onPlayerRightClick(PlayerControllerMP.java:403) ~[PlayerControllerMP.class:?]

at net.minecraft.client.Minecraft.func_147121_ag(Minecraft.java:1529) ~[Minecraft.class:?]

at net.minecraft.client.Minecraft.runTick(Minecraft.java:2044) ~[Minecraft.class:?]

at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1039) ~[Minecraft.class:?]

at net.minecraft.client.Minecraft.run(Minecraft.java:962) [Minecraft.class:?]

at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_73]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_73]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_73]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_73]

at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?]

at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?]

at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?]

at GradleStart.main(Unknown Source) [start/:?]

[19:36:46] [Client thread/INFO] [sTDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:388]: ---- Minecraft Crash Report ----

// I'm sorry, Dave.

 

Time: 17/03/16 19:36

Description: Unexpected error

 

java.lang.ClassCastException: com.koopamillion.tile_entity.TileEntityCreativeEnergyStorage cannot be cast to com.koopamillion.tile_entity.TileEntityEnergyStorageTier1

at com.koopamillion.blocks.BlockEnergyStorage.onBlockPlacedBy(BlockEnergyStorage.java:94)

at net.minecraft.item.ItemBlock.placeBlockAt(ItemBlock.java:239)

at net.minecraft.item.ItemBlock.onItemUse(ItemBlock.java:116)

at net.minecraft.item.ItemStack.tryPlaceItemIntoWorld(ItemStack.java:143)

at net.minecraft.client.multiplayer.PlayerControllerMP.onPlayerRightClick(PlayerControllerMP.java:403)

at net.minecraft.client.Minecraft.func_147121_ag(Minecraft.java:1529)

at net.minecraft.client.Minecraft.runTick(Minecraft.java:2044)

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 com.koopamillion.blocks.BlockEnergyStorage.onBlockPlacedBy(BlockEnergyStorage.java:94)

at net.minecraft.item.ItemBlock.placeBlockAt(ItemBlock.java:239)

at net.minecraft.item.ItemBlock.onItemUse(ItemBlock.java:116)

at net.minecraft.item.ItemStack.tryPlaceItemIntoWorld(ItemStack.java:143)

at net.minecraft.client.multiplayer.PlayerControllerMP.onPlayerRightClick(PlayerControllerMP.java:403)

at net.minecraft.client.Minecraft.func_147121_ag(Minecraft.java:1529)

 

-- Affected level --

Details:

Level name: MpServer

All players: 1 total; [EntityClientPlayerMP['Player998'/257, l='MpServer', x=426.03, y=65.62, z=412.56]]

Chunk stats: MultiplayerChunkCache: 150, 150

Level seed: 0

Level generator: ID 04 - koops, ver 0. Features enabled: false

Level generator options:

Level spawn location: World: (430,64,434), Chunk: (at 14,4,2 in 26,27; contains blocks 416,0,432 to 431,255,447), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)

Level time: 12818 game time, 12818 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: 105 total; [EntityClientPlayerMP['Player998'/257, l='MpServer', x=426.03, y=65.62, z=412.56], EntityZombie['Zombie'/27, l='MpServer', x=350.50, y=19.00, z=380.50], EntityZombie['Zombie'/28, l='MpServer', x=347.34, y=21.00, z=400.53], EntityCreeper['Creeper'/32, l='MpServer', x=352.50, y=25.00, z=341.50], EntitySquid['Squid'/34, l='MpServer', x=364.22, y=52.37, z=349.25], EntitySquid['Squid'/39, l='MpServer', x=362.20, y=47.00, z=367.14], EntityCreeper['Creeper'/40, l='MpServer', x=366.03, y=29.00, z=392.56], EntitySquid['Squid'/41, l='MpServer', x=367.53, y=50.00, z=408.56], EntityCreeper['Creeper'/47, l='MpServer', x=372.63, y=19.00, z=363.94], EntitySquid['Squid'/48, l='MpServer', x=369.90, y=54.83, z=352.48], EntityBat['Bat'/49, l='MpServer', x=382.07, y=14.00, z=370.33], EntitySkeleton['Skeleton'/50, l='MpServer', x=368.50, y=26.00, z=373.50], EntitySquid['Squid'/51, l='MpServer', x=372.50, y=47.13, z=368.77], EntitySpider['Spider'/52, l='MpServer', x=378.00, y=36.00, z=387.19], EntityZombie['Zombie'/53, l='MpServer', x=379.16, y=35.00, z=389.31], EntityBat['Bat'/54, l='MpServer', x=373.75, y=23.10, z=407.25], EntityZombie['Zombie'/55, l='MpServer', x=375.58, y=21.00, z=412.22], EntityZombie['Zombie'/56, l='MpServer', x=372.88, y=20.00, z=412.72], EntityCreeper['Creeper'/57, l='MpServer', x=372.56, y=20.00, z=408.69], EntityCreeper['Creeper'/58, l='MpServer', x=381.06, y=28.00, z=400.56], EntityCreeper['Creeper'/65, l='MpServer', x=392.41, y=11.00, z=360.00], EntityCreeper['Creeper'/66, l='MpServer', x=398.38, y=53.00, z=365.94], EntityCreeper['Creeper'/67, l='MpServer', x=393.41, y=18.00, z=377.00], EntityZombie['Zombie'/68, l='MpServer', x=387.50, y=27.00, z=373.50], EntityBat['Bat'/69, l='MpServer', x=398.52, y=50.21, z=371.29], EntityCreeper['Creeper'/70, l='MpServer', x=392.94, y=18.00, z=388.25], EntityCreeper['Creeper'/71, l='MpServer', x=394.97, y=13.00, z=401.47], EntityZombie['Zombie'/72, l='MpServer', x=393.94, y=20.00, z=414.50], EntityCow['Cow'/73, l='MpServer', x=391.44, y=62.00, z=434.81], EntitySheep['Sheep'/74, l='MpServer', x=393.91, y=71.00, z=447.03], EntityCow['Cow'/75, l='MpServer', x=396.38, y=69.00, z=442.28], EntityCow['Cow'/76, l='MpServer', x=390.63, y=66.00, z=441.41], EntityCow['Cow'/77, l='MpServer', x=401.94, y=72.00, z=450.50], EntityCow['Cow'/78, l='MpServer', x=390.50, y=71.00, z=484.31], EntityCow['Cow'/79, l='MpServer', x=398.81, y=71.00, z=491.88], EntityCreeper['Creeper'/83, l='MpServer', x=412.59, y=48.00, z=370.00], EntityCreeper['Creeper'/84, l='MpServer', x=411.56, y=48.00, z=371.66], EntityZombie['Zombie'/85, l='MpServer', x=400.56, y=11.00, z=386.03], EntityCow['Cow'/86, l='MpServer', x=403.06, y=63.00, z=430.53], EntitySheep['Sheep'/87, l='MpServer', x=412.06, y=64.00, z=424.41], EntityCow['Cow'/88, l='MpServer', x=413.28, y=65.00, z=425.66], EntityCow['Cow'/89, l='MpServer', x=414.50, y=65.00, z=425.88], EntitySheep['Sheep'/90, l='MpServer', x=403.19, y=71.00, z=441.88], EntitySheep['Sheep'/91, l='MpServer', x=401.78, y=65.00, z=434.44], EntityZombie['Zombie'/96, l='MpServer', x=430.44, y=12.00, z=335.31], EntityBat['Bat'/97, l='MpServer', x=425.54, y=24.50, z=358.22], EntityCreeper['Creeper'/98, l='MpServer', x=427.06, y=25.00, z=360.47], EntitySkeleton['Skeleton'/99, l='MpServer', x=424.88, y=46.00, z=377.50], EntityCreeper['Creeper'/100, l='MpServer', x=423.23, y=45.00, z=378.76], EntityCreeper['Creeper'/101, l='MpServer', x=426.79, y=45.00, z=381.05], EntitySkeleton['Skeleton'/102, l='MpServer', x=419.94, y=46.00, z=379.44], EntitySkeleton['Skeleton'/103, l='MpServer', x=422.28, y=44.00, z=379.31], EntityBat['Bat'/104, l='MpServer', x=418.25, y=45.10, z=388.75], EntityEnderman['Enderman'/105, l='MpServer', x=417.38, y=54.00, z=389.88], EntityItem['item.tile.machine.0'/106, l='MpServer', x=422.41, y=63.13, z=412.31], EntityCow['Cow'/107, l='MpServer', x=430.94, y=64.00, z=409.19], EntityCow['Cow'/108, l='MpServer', x=421.59, y=71.00, z=440.47], EntityCow['Cow'/109, l='MpServer', x=428.97, y=71.00, z=451.88], EntityZombie['Zombie'/119, l='MpServer', x=433.28, y=12.00, z=336.88], EntityZombie['Zombie'/120, l='MpServer', x=441.47, y=13.00, z=341.78], EntitySkeleton['Skeleton'/121, l='MpServer', x=445.50, y=13.00, z=341.50], EntitySkeleton['Skeleton'/122, l='MpServer', x=433.84, y=13.00, z=340.50], EntitySkeleton['Skeleton'/123, l='MpServer', x=443.50, y=13.00, z=343.50], EntitySkeleton['Skeleton'/124, l='MpServer', x=440.25, y=13.00, z=342.69], EntityCreeper['Creeper'/125, l='MpServer', x=434.63, y=19.00, z=344.94], EntitySkeleton['Skeleton'/126, l='MpServer', x=442.50, y=48.00, z=377.50], EntityZombie['Zombie'/127, l='MpServer', x=441.88, y=49.00, z=376.28], EntityCow['Cow'/128, l='MpServer', x=445.78, y=65.00, z=453.38], EntityCow['Cow'/129, l='MpServer', x=443.16, y=66.00, z=446.30], EntityZombie['Zombie'/130, l='MpServer', x=440.03, y=43.00, z=476.50], EntityZombie['Zombie'/139, l='MpServer', x=460.41, y=17.00, z=469.95], EntityCreeper['Creeper'/147, l='MpServer', x=475.00, y=31.00, z=352.50], EntityZombie['Zombie'/148, l='MpServer', x=472.50, y=31.00, z=353.50], EntityBat['Bat'/149, l='MpServer', x=470.52, y=31.00, z=353.17], EntityZombie['Zombie'/150, l='MpServer', x=479.63, y=18.00, z=439.09], EntityMinecartChest['entity.MinecartChest.name'/151, l='MpServer', x=475.50, y=17.50, z=471.50], EntitySkeleton['Skeleton'/158, l='MpServer', x=493.84, y=36.00, z=338.47], EntityBat['Bat'/159, l='MpServer', x=488.40, y=38.92, z=349.61], EntityEnderman['Enderman'/160, l='MpServer', x=480.16, y=28.00, z=358.22], EntityEnderman['Enderman'/161, l='MpServer', x=490.53, y=26.00, z=364.66], EntityBat['Bat'/162, l='MpServer', x=482.14, y=33.13, z=362.61], EntityBat['Bat'/163, l='MpServer', x=485.49, y=34.46, z=362.72], EntityBat['Bat'/164, l='MpServer', x=489.38, y=17.07, z=439.77], EntityBat['Bat'/165, l='MpServer', x=494.53, y=20.10, z=446.88], EntityZombie['Zombie'/166, l='MpServer', x=491.50, y=42.00, z=432.50], EntityEnderman['Enderman'/167, l='MpServer', x=487.50, y=18.00, z=461.34], EntitySkeleton['Skeleton'/168, l='MpServer', x=490.94, y=18.00, z=461.53], EntityBat['Bat'/169, l='MpServer', x=486.13, y=23.10, z=471.75], EntitySkeleton['Skeleton'/170, l='MpServer', x=482.34, y=17.00, z=469.88], EntityZombie['Zombie'/171, l='MpServer', x=493.50, y=22.00, z=470.50], EntityZombie['Zombie'/172, l='MpServer', x=494.50, y=22.00, z=469.50], EntitySheep['Sheep'/173, l='MpServer', x=491.47, y=74.00, z=468.16], EntityZombie['Zombie'/174, l='MpServer', x=491.50, y=22.00, z=488.09], EntityCreeper['Creeper'/175, l='MpServer', x=495.09, y=25.00, z=487.97], EntitySheep['Sheep'/176, l='MpServer', x=491.50, y=76.00, z=481.06], EntitySheep['Sheep'/177, l='MpServer', x=489.56, y=81.00, z=483.44], EntitySkeleton['Skeleton'/190, l='MpServer', x=506.50, y=24.00, z=363.50], EntitySkeleton['Skeleton'/191, l='MpServer', x=506.75, y=24.00, z=367.31], EntitySkeleton['Skeleton'/194, l='MpServer', x=498.50, y=43.00, z=369.50], EntityBat['Bat'/196, l='MpServer', x=496.72, y=32.00, z=418.47], EntityBat['Bat'/198, l='MpServer', x=497.72, y=19.10, z=439.50], EntityMinecartChest['entity.MinecartChest.name'/201, l='MpServer', x=504.50, y=24.50, z=463.50], EntityZombie['Zombie'/202, l='MpServer', x=497.50, y=22.00, z=471.50], EntityCow['Cow'/206, l='MpServer', x=505.56, y=79.00, z=488.38], EntitySheep['Sheep'/207, l='MpServer', x=506.72, y=80.00, z=489.53]]

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

Java Version: 1.8.0_73, Oracle Corporation

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

Memory: 858434248 bytes (818 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 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.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 ekoop{0.1} [E Koop] (bin)

GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 361.91' Renderer: 'GeForce GTX 950/PCIe/SSE2'

Launched Version: 1.7.10

LWJGL: 2.9.1

OpenGL: GeForce GTX 950/PCIe/SSE2 GL version 4.5.0 NVIDIA 361.91, 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)

[19:36:46] [Client thread/INFO] [sTDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:398]: #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\joshu\Desktop\mod2\eclipse\.\crash-reports\crash-2016-03-17_19.36.46-client.txt

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

 

 

 

Random Classes:

 

package com.koopamillion.tile_entity;

 

import net.minecraft.tileentity.TileEntity;

 

public class TileEntityCreativeEnergyStorage extends TileEntity {

 

}

 

 

 

package com.koopamillion.tile_entity;

 

import com.koopamillion.blocks.BlockType;

import com.koopamillion.energy.EnergyBar;

import com.koopamillion.energy.EnergyNet;

import com.koopamillion.energy.IEnergy;

 

import net.minecraft.nbt.NBTTagCompound;

import net.minecraft.network.NetworkManager;

import net.minecraft.network.Packet;

import net.minecraft.network.play.server.S35PacketUpdateTileEntity;

import net.minecraft.tileentity.TileEntity;

import net.minecraftforge.common.util.ForgeDirection;

 

public class TileEntityEnergyStorageTier1 extends TileEntity implements IEnergy{

 

private EnergyBar energyBar = new EnergyBar(36000); //how much it holds (1 Battery = 12000)

public ForgeDirection outputSide = ForgeDirection.SOUTH;

//HOLDING INFO

//T1 = 36,000

//T2 = 256,000

//T3 = 1,024,000

//T4 = 8,192,000

//T5 = 65,536,000

//T6 = 524,288,000

public void updateEntity(){

EnergyNet.distributeEnergyToSide(worldObj, xCoord, yCoord, zCoord, outputSide, energyBar);

}

 

@Override

public boolean canAddEnergyOnSide(ForgeDirection direction) {

 

return direction != outputSide;

}

@Override

public boolean canConnect(ForgeDirection direction) {

return true;

}

@Override

public EnergyBar getEnergyBar() {

return energyBar;

}

@Override

public void setLastReceivedDirection(ForgeDirection direction) {

 

}

@Override

public int getEnergyTransferRate() {

return 100;

}

@Override

public BlockType getTypeOfBlock() {

return BlockType.MACHINE;

}

public void writeToNBT(NBTTagCompound tag){

super.writeToNBT(tag);

energyBar.writeToNBT(tag);

tag.setInteger("outputSide", outputSide.ordinal());

}

public void readToNBT(NBTTagCompound tag){

super.readFromNBT(tag);

energyBar.readFromNBT(tag);

outputSide = ForgeDirection.getOrientation(tag.getInteger("outputSide"));

 

}

public Packet getDescriptionPacket(){

NBTTagCompound tag = new NBTTagCompound();

writeToNBT(tag);

return new S35PacketUpdateTileEntity(xCoord, yCoord, zCoord, 1, tag);

}

public void onDataPacket(NetworkManager manager, S35PacketUpdateTileEntity packet){

readFromNBT(packet.func_148857_g());

}

 

}

 

 

 

package com.koopamillion.blocks;

 

import java.util.List;

 

import com.koopamillion.creativetabs.MCreativeTabs;

import com.koopamillion.lib.Names;

import com.koopamillion.lib.RefStrings;

import com.koopamillion.tile_entity.TileEntityCreativeEnergyStorage;

import com.koopamillion.tile_entity.TileEntityEnergyStorageTier1;

import com.koopamillion.util.BlockUtil;

 

import net.minecraft.block.Block;

import net.minecraft.block.BlockContainer;

import net.minecraft.block.BlockPistonBase;

import net.minecraft.block.material.Material;

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

import net.minecraft.entity.EntityLivingBase;

import net.minecraft.item.Item;

import net.minecraft.item.ItemStack;

import net.minecraft.tileentity.TileEntity;

import net.minecraft.util.IIcon;

import net.minecraft.util.MovingObjectPosition;

import net.minecraft.world.IBlockAccess;

import net.minecraft.world.World;

import net.minecraftforge.common.util.ForgeDirection;

 

public class BlockEnergyStorage extends Block{

 

public IIcon output;

public IIcon input;

 

public BlockEnergyStorage(){

super(Material.iron);

this.setCreativeTab(MCreativeTabs.tabBlocks);

this.setBlockName(Names.ENERGYSTORAGE);

this.setHardness(3.5F);

this.setResistance(17.5F);

this.setHarvestLevel("pickaxe", 1);

}

public TileEntity createTileEntity(World world, int meta){

switch(meta){

case 0:

return new TileEntityCreativeEnergyStorage();

case 1:

return new TileEntityEnergyStorageTier1();

}

return null;

}

 

public boolean hasTileEntity(int meta){

return meta <= 1;

}

public void getSubBlocks(Item item, MCreativeTabs creativeTab, List list)

    {

        list.add(new ItemStack(item, 1, 0));

        list.add(new ItemStack(item, 1, 1));

    }

public int damageDropped(int meta){

return meta;

}

public ItemStack getPickBlock(MovingObjectPosition target, World world, int x, int y, int z){

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

return new ItemStack(this, 1, meta);

}

public IIcon getIcon(IBlockAccess world, int x, int y, int z, int side){

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

switch(meta){

case 0:

return output;

case 1:

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

if(side == tileentity.outputSide.ordinal()) return output;

}

return input;

}

public void registerBlockIcons(IIconRegister iconRegister){

output = iconRegister.registerIcon(RefStrings.MODID + ":energyStorageOutput");

input = iconRegister.registerIcon(RefStrings.MODID + ":energyStorageInput");

}

public IIcon getIcon(int side, int meta){

switch(meta){

case 0:

return output;

case 1:

if(side == 3) return output;

}

return input;

}

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

    {

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

        if (meta != 1)

        {

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

            int rotation = BlockPistonBase.determineOrientation(world, x, y, z, player);

            tileentity.outputSide = ForgeDirection.VALID_DIRECTIONS[rotation];

        }

    }

}

 

 

 

 

 

package com.koopamillion.blocks;

 

import com.koopamillion.Main.FuelHandler;

import com.koopamillion.creativetabs.MCreativeTabs;

import com.koopamillion.lib.Names;

import com.koopamillion.lib.RefStrings;

 

import cpw.mods.fml.common.registry.GameRegistry;

import net.minecraft.block.Block;

import net.minecraft.block.material.Material;

import net.minecraft.creativetab.CreativeTabs;

import net.minecraft.item.ItemPickaxe;

import net.minecraftforge.fluids.Fluid;

import net.minecraftforge.fluids.FluidRegistry;

 

public class MBlocks {

public static void mainRegistry(){

initializeBlock();

registerItem();

}

//Wolf ore = wolframium(tungsten)

//cryP = crystal plant

public static Block SilOre;

public static Block SilBlock;

public static Block WolfOre;

public static Block LightCube;

public static Block cryP;

public static Block crySoil;

public static Block urOre;

public static Block pounderMachine;

public static Block pounderMachineActive;

public static Block CABLE;

public static Block CuOre;

public static Block BlockEnergyGeneratorCoal;

public static Block ElectricalChestT1;

public static Block Machines;

public static Block EnergyStorage;

 

 

 

public static void initializeBlock(){

SilOre = new SilOre(Material.ground).setBlockName("SilOre").setCreativeTab(MCreativeTabs.tabBlocks).setBlockTextureName(RefStrings.MODID + ":SilOre");

WolfOre = new WolfOre(Material.ground).setBlockName("WolfOre").setCreativeTab(MCreativeTabs.tabBlocks).setBlockTextureName(RefStrings.MODID + ":WolfOre");

SilBlock = new SilBlock(Material.iron).setBlockName("SilBlock").setCreativeTab(MCreativeTabs.tabBlocks).setBlockTextureName(RefStrings.MODID + ":SilBlock").setHardness(5.0f).setResistance(25.0f).setStepSound(Block.soundTypeMetal);

LightCube = new LightCube(Material.redstoneLight).setBlockName("LightCube").setCreativeTab(MCreativeTabs.tabBlocks).setBlockTextureName(RefStrings.MODID + ":LightCube").setLightLevel(1.0f).setHardness(0.3f).setResistance(1.0f).setStepSound(Block.soundTypeGlass);

cryP = new cryP().setBlockName("cryP").setCreativeTab(MCreativeTabs.tabPlants).setBlockTextureName(RefStrings.MODID + ":cryP");

crySoil = new crySoil(Material.grass).setBlockName("crySoil").setCreativeTab(MCreativeTabs.tabBlocks).setBlockTextureName(RefStrings.MODID + ":crySoil");

urOre = new urOre(Material.ground).setBlockName("urOre").setCreativeTab(MCreativeTabs.tabBlocks).setBlockTextureName(RefStrings.MODID + ":urOre").setLightLevel(0.2f);

pounderMachine = new pounderMachine(false).setBlockName("pMachine").setCreativeTab(MCreativeTabs.tabBlocks);

pounderMachineActive = new pounderMachine(true).setBlockName("pMachineActive");

CABLE = new BlockCable().setBlockTextureName(RefStrings.MODID + ":cableBlock");

CuOre = new CuOre(Material.ground).setBlockName("CuOre").setCreativeTab(MCreativeTabs.tabBlocks).setBlockTextureName(RefStrings.MODID + ":CuOre");

ElectricalChestT1 = new ElectricalChestT1(0).setBlockName("ElectricalChestT1").setCreativeTab(MCreativeTabs.tabBlocks).setBlockTextureName(RefStrings.MODID + ":ElectricalChestT1");

BlockEnergyGeneratorCoal = new BlockEnergyGeneratorCoal();

Machines = new BlockMachines();

EnergyStorage = new BlockEnergyStorage();

 

}

   

public static void registerItem(){

GameRegistry.registerBlock(SilOre, SilOre.getUnlocalizedName());

GameRegistry.registerBlock(CuOre, CuOre.getUnlocalizedName());

GameRegistry.registerBlock(SilBlock, SilBlock.getUnlocalizedName());

GameRegistry.registerBlock(WolfOre, WolfOre.getUnlocalizedName());

GameRegistry.registerBlock(LightCube, LightCube.getUnlocalizedName());

GameRegistry.registerBlock(crySoil, crySoil.getUnlocalizedName());

GameRegistry.registerBlock(cryP, cryP.getUnlocalizedName());

GameRegistry.registerBlock(urOre, urOre.getUnlocalizedName());

GameRegistry.registerFuelHandler(new FuelHandler());

//GuiMachines/OtherGuiTileEntity

GameRegistry.registerBlock(pounderMachine, pounderMachine.getUnlocalizedName());

GameRegistry.registerBlock(pounderMachineActive, pounderMachineActive.getUnlocalizedName());

GameRegistry.registerBlock(ElectricalChestT1, ElectricalChestT1.getUnlocalizedName());

//cables

GameRegistry.registerBlock(CABLE, ItemBlockStandardMetadata.class, Names.CABLE);

GameRegistry.registerBlock(BlockEnergyGeneratorCoal, ItemBlockStandardMetadata.class, Names.COALGEN);

GameRegistry.registerBlock(Machines, ItemBlockStandardMetadata.class, Names.MACHINES);

GameRegistry.registerBlock(EnergyStorage, ItemBlockStandardMetadata.class, Names.ENERGYSTORAGE);

 

}

}

 

 

 

package com.koopamillion.Main;

 

import com.koopamillion.handler.MGuiHandler;

import com.koopamillion.lib.RefStrings;

import com.koopamillion.tile_entity.TileEntityCoalGenerator;

import com.koopamillion.tile_entity.TileEntityElectricFurnace;

import com.koopamillion.tile_entity.TileEntityEnergyStorageTier1;

import com.koopamillion.tile_entity.TileEntityPoundingMachine;

 

import cpw.mods.fml.common.network.NetworkRegistry;

import cpw.mods.fml.common.registry.GameRegistry;

 

public class ServerProxy {

public void registerRenderInfo() {

 

}

 

public int addArmor(String armor){

return 0;

 

}

 

public void registerNetworkStuff(){

NetworkRegistry.INSTANCE.registerGuiHandler(MainRegistry.modInstance, new MGuiHandler());

}

 

public void registerTileEntities(){

GameRegistry.registerTileEntity(TileEntityPoundingMachine.class, RefStrings.MODID + ":TileEntityPoundingMachine");

GameRegistry.registerTileEntity(TileEntityCoalGenerator.class, RefStrings.MODID + ":TileEntityCoalGenerator");

GameRegistry.registerTileEntity(TileEntityElectricFurnace.class, RefStrings.MODID + ":TileEntityElectricFurnace");

 

GameRegistry.registerTileEntity(TileEntityEnergyStorageTier1.class, RefStrings.MODID + ":TileEntityCreativeEnergyStorage");

GameRegistry.registerTileEntity(TileEntityEnergyStorageTier1.class, RefStrings.MODID + ":TileEntityEnergyStorageTier1");

}

}

 

 

Link to comment
Share on other sites

if(meta == 1) { getTE() }
...
if(meta == 1) { getTE() }
...
if(meta == 1) { getTE() }
...
if(meta != 1) { getTE() } //crash here

 

Hmm.

 

One of these things is not like the others.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

First of all: Why are you on 1.7.10 still and why is all your code a copy-pasted mess?

 

The error is pretty clear: you are trying to cast TileEntityCreativeEnergyStorage to TileEntityEnergyStorageTier1 in onBlockPlacedBy. Also (unrelated): you did not register TileEntityCreativeEnergyStorage.

 

I dont know how to update to 1.8 :'(

Link to comment
Share on other sites

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.



×
×
  • Create New...

Important Information

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