use of net.glowstone.entity.GlowLightningStrike in project Glowstone by GlowstoneMC.
the class GlowWorld method strikeLightningFireEvent.
private GlowLightningStrike strikeLightningFireEvent(Location loc, boolean effect, boolean isSilent) {
checkNotNull(loc);
GlowLightningStrike strike = new GlowLightningStrike(loc, effect, isSilent);
LightningStrikeEvent event = new LightningStrikeEvent(this, strike);
if (EventFactory.getInstance().callEvent(event).isCancelled()) {
return null;
}
return strike;
}
Aggregations