get entity from creature spawn event

Hey guys, sorry for asking again, i am now Trying to use creature spawn event, let me show you:
@EventHandler
public void onSpawn(CreatureSpawnEvent e){
Entity ent = e.getEntityType();
if (ent instanceof Zombie){
}
}
it says operator types isn't correct which I understand, but how can I match them? thank you!!
 
Top