Package net.minecraftforge.event.entity
Class EntityStruckByLightningEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.entity.EntityEvent
net.minecraftforge.event.entity.EntityStruckByLightningEvent
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
This event is
If this event is canceled, the Entity is not struck by the lightening.
This event does not have a result.
This event is fired on the
This event is fired whenever an EntityLightningBolt is updated to strike an Entity in
LightningBolt.tick()
via ForgeEventFactory.onEntityStruckByLightning(Entity, LightningBolt)
.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
.-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.event.entity.EntityEvent
EntityEvent.EnteringSection, EntityEvent.EntityConstructing, EntityEvent.EyeHeight, EntityEvent.Size
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class net.minecraftforge.event.entity.EntityEvent
getEntity
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Field Details
-
lightning
-
-
Constructor Details
-
EntityStruckByLightningEvent
-
-
Method Details
-
getLightning
-