java.lang.ClassCastException: net.minecraft.entity.passive.EntityVillager cannot be cast to mca.entity.EntityHuman

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

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via GitHub by QORTEC
, 1 year ago
net.minecraft.entity.passive.EntityVillager cannot be cast to mca.entity.EntityHuman
via GitHub by sethleedy
, 1 year ago
net.minecraft.entity.passive.EntityVillager cannot be cast to mca.entity.EntityHuman
via GitHub by RoseDAmour
, 1 year ago
net.minecraft.entity.passive.EntityVillager cannot be cast to mca.entity.EntityHuman
via GitHub by HENREX
, 1 year ago
net.minecraft.entity.passive.EntityVillager cannot be cast to mca.entity.EntityHuman
via GitHub by QORTEC
, 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.core.forge.EventHooksForge.onLivingAttack(EventHooksForge.java:259)
at cpw.mods.fml.common.eventhandler.ASMEventHandler_390_EventHooksForge_onLivingAttack_LivingAttackEvent.invoke(.dynamic)
at cpw.mods.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:54)
at cpw.mods.fml.common.eventhandler.EventBus.post(EventBus.java:140)
at net.minecraft.entity.monster.EntityMob.func_70097_a(SourceFile:54)
at net.minecraft.entity.monster.EntityZombie.func_70097_a(EntityZombie.java:222)
at am2.spell.SpellHelper.attackTargetSpecial(SpellHelper.java:330)
at am2.spell.components.FrostDamage.applyEffectEntity(FrostDamage.java:35)
at am2.spell.SpellHelper.applyStageToEntity(SpellHelper.java:109)
at am2.entities.EntitySpellProjectile.HitObject(EntitySpellProjectile.java:408)
at am2.entities.EntitySpellProjectile.func_70071_h_(EntitySpellProjectile.java:355)
at net.minecraft.world.World.func_72866_a(World.java:2070)
at net.minecraft.world.WorldServer.func_72866_a(WorldServer.java:648)
at net.minecraft.world.World.func_72870_g(World.java:2034)
at net.minecraft.world.World.func_72939_s(World.java:1887)
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:636)
at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:334)
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:547)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:427)
at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:685)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.