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 PrinceOfAmber
, 1 year ago
net.minecraft.entity.passive.EntityVillager cannot be cast to mca.entity.EntityHuman
java.lang.ClassCastException: net.minecraft.entity.passive.EntityVillager cannot be cast to mca.entity.EntityHuman	at mca.packets.PacketInteract.getVillageHappinessPercentage(PacketInteract.java:593)	at mca.packets.PacketInteract.processOnGameThread(PacketInteract.java:524)	at radixcore.network.AbstractPacketHandler.processPackets(AbstractPacketHandler.java:161)	at mca.core.forge.EventHooksFML.serverTickEventHandler(EventHooksFML.java:198)	at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_129_EventHooksFML_serverTickEventHandler_ServerTickEvent.invoke(.dynamic)	at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:68)	at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:159)	at net.minecraftforge.fml.common.FMLCommonHandler.onPostServerTick(FMLCommonHandler.java:261)	at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:657)	at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:240)	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471)	at java.lang.Thread.run(Thread.java:745)