Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by Rongmario
, 1 year ago
gregtech.common.items.GT_MetaGenerated_Item_01 cannot be cast to net.minecraft.item.ItemBlock
java.lang.ClassCastException: gregtech.common.items.GT_MetaGenerated_Item_01 cannot be cast to net.minecraft.item.ItemBlock	at org.cyclops.cyclopscore.helper.BlockHelpers.getBlockStateFromItemStack(BlockHelpers.java:106)	at org.cyclops.evilcraft.block.DisplayStand.func_149666_a(DisplayStand.java:204)	at net.minecraft.item.ItemBlock.func_150895_a(ItemBlock.java:147)	at org.cyclops.cyclopscore.config.configurabletypeaction.ItemAction.handleItemModel(ItemAction.java:80)	at org.cyclops.cyclopscore.config.configurabletypeaction.BlockAction.polish(BlockAction.java:122)	at org.cyclops.cyclopscore.config.configurabletypeaction.BlockAction.polish(BlockAction.java:31)	at org.cyclops.cyclopscore.config.ConfigHandler.polishConfigs(ConfigHandler.java:122)	at org.cyclops.cyclopscore.init.ModBase.init(ModBase.java:285)	at org.cyclops.evilcraft.EvilCraft.init(EvilCraft.java:161)	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.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:595)	at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)	at java.lang.reflect.Method.invoke(Unknown Source)	at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)	at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)	at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)	at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)	at com.google.common.eventbus.EventBus.post(EventBus.java:275)	at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:239)	at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:217)	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 com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)	at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)	at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)	at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)	at com.google.common.eventbus.EventBus.post(EventBus.java:275)	at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:142)	at net.minecraftforge.fml.common.Loader.initializeMods(Loader.java:788)	at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:322)	at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:520)	at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:351)	at net.minecraft.client.main.Main.main(SourceFile:124)	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 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 org.multimc.onesix.OneSixLauncher.launchWithMainClass(OneSixLauncher.java:310)	at org.multimc.onesix.OneSixLauncher.launch(OneSixLauncher.java:395)	at org.multimc.EntryPoint.listen(EntryPoint.java:170)	at org.multimc.EntryPoint.main(EntryPoint.java:54)