Jump to content

Recommended Posts

Posted

Hello! I created entity class which extends EntityZombie class. When I try to override attackEntity method, it just does not work, System.out.prinln("attackEnttiy") does not work too.

 

@Override
protected void attackEntity(Entity par1Entity, float par2)
{
    System.out.println("attackEntity");
    super.attackEntity(par1Entity, par2);
}

 

Maybe it does not work because super class hasn't that method, but how to use it then?

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.