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 purpleposeidon
, 1 year ago
net.minecraft.client.multiplayer.WorldClient cannot be cast to net.minecraft.world.WorldServer
java.lang.ClassCastException: net.minecraft.client.multiplayer.WorldClient cannot be cast to net.minecraft.world.WorldServer	at mods.railcraft.common.items.firestone.ItemFirestoneRefined.func_180614_a(ItemFirestoneRefined.java:157)	at net.minecraft.item.ItemStack.func_179546_a(ItemStack.java:145)	at net.minecraft.client.multiplayer.PlayerControllerMP.func_187099_a(PlayerControllerMP.java:463)	at net.minecraft.client.Minecraft.func_147121_ag(Minecraft.java:1518)	at net.minecraft.client.Minecraft.func_184117_aA(Minecraft.java:2184)	at net.minecraft.client.Minecraft.func_184118_az(Minecraft.java:1961)	at net.minecraft.client.Minecraft.func_71407_l(Minecraft.java:1749)	at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:1055)	at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:371)	at net.minecraft.client.main.Main.main(SourceFile:124)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:497)	at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)	at net.minecraft.launchwrapper.Launch.main(Launch.java:28)