public class EntityStruckByLightningEvent extends EntityEvent
EntityLightningBolt.onUpdate()
via ForgeEventFactory.onEntityStruckByLightning(Entity, EntityLightningBolt)
.lightning
contains the instance of EntityLightningBolt attempting to strike an entity.Cancelable
.HasResult
MinecraftForge.EVENT_BUS
.EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing
Event.HasResult, Event.Result
Modifier and Type | Field and Description |
---|---|
private EntityLightningBolt |
lightning |
Constructor and Description |
---|
EntityStruckByLightningEvent(Entity entity,
EntityLightningBolt lightning) |
Modifier and Type | Method and Description |
---|---|
EntityLightningBolt |
getLightning() |
getEntity
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
private final EntityLightningBolt lightning
public EntityStruckByLightningEvent(Entity entity, EntityLightningBolt lightning)
public EntityLightningBolt getLightning()