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
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
public EntityStruckByLightningEvent(Entity entity, EntityLightningBolt lightning)
public EntityLightningBolt getLightning()