return (LivingEntity) spawn(loc, type.getEntityClass());
}
private GlowLightningStrike strikeLightningFireEvent(final Location loc, final boolean effect) {
final GlowLightningStrike strike = new GlowLightningStrike(loc, effect, random);
final LightningStrikeEvent event = new LightningStrikeEvent(this, strike);
if (EventFactory.callEvent(event).isCancelled()) {
return null;
}
return strike;
}