java.lang.ClassCastException: net.minecraft.client.multiplayer.WorldClient cannot be cast to net.minecraft.world.WorldServer

GitHub | purpleposeidon | 5 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    [1.10] Various firestone bugs

    GitHub | 5 months ago | purpleposeidon
    java.lang.ClassCastException: net.minecraft.client.multiplayer.WorldClient cannot be cast to net.minecraft.world.WorldServer

    Root Cause Analysis

    1. 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()
    2. mods.railcraft.common
      ItemFirestoneRefined.func_180614_a
      1. mods.railcraft.common.items.firestone.ItemFirestoneRefined.func_180614_a(ItemFirestoneRefined.java:157)
      1 frame
    3. Minecraft
      ItemStack.func_179546_a
      1. net.minecraft.item.ItemStack.func_179546_a(ItemStack.java:145)
      1 frame
    4. MC Client
      Main.main
      1. net.minecraft.client.multiplayer.PlayerControllerMP.func_187099_a(PlayerControllerMP.java:463)
      2. net.minecraft.client.Minecraft.func_147121_ag(Minecraft.java:1518)
      3. net.minecraft.client.Minecraft.func_184117_aA(Minecraft.java:2184)
      4. net.minecraft.client.Minecraft.func_184118_az(Minecraft.java:1961)
      5. net.minecraft.client.Minecraft.func_71407_l(Minecraft.java:1749)
      6. net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:1055)
      7. net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:371)
      8. net.minecraft.client.main.Main.main(SourceFile:124)
      8 frames
    5. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:497)
      4 frames
    6. Minecraft
      Launch.main
      1. net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
      2. net.minecraft.launchwrapper.Launch.main(Launch.java:28)
      2 frames