Class EntityStruckByLightningEvent

java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.entity.EntityEvent
net.minecraftforge.event.entity.EntityStruckByLightningEvent

public class EntityStruckByLightningEvent extends EntityEvent
EntityStruckByLightningEvent is fired when an Entity is about to be struck by lightening.
This event is fired whenever an EntityLightningBolt is updated to strike an Entity in EntityLightningBolt#onUpdate() via ForgeEventFactory.onEntityStruckByLightning(Entity, EntityLightningBolt).

lightning contains the instance of EntityLightningBolt attempting to strike an entity.

This event is Cancelable.
If this event is canceled, the Entity is not struck by the lightening.

This event does not have a result. Event.HasResult

This event is fired on the MinecraftForge.EVENT_BUS.