LightningStrikeEvent

Event called when a lighting strikes in the world.

Constructors

this
this(World world, EntityPosition position)
Undocumented in source.
this
this(World world, Entity target)
Undocumented in source.

Members

Mixins

__anonymous
mixin Cancellable.Implementation
Undocumented in source.
__anonymous
mixin WorldEvent.Implementation
Undocumented in source.

Properties

position
EntityPosition position [@property getter]

Gets the position where the lightning has struck.

target
Entity target [@property getter]

Gets the target of the lightning, it may be null if the lightning struck randomly.

Mixed In Members

From mixin Cancellable.Implementation

cancel
void cancel()
Undocumented in source. Be warned that the author may not have intended to support it.
cancelled
bool cancelled [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

From mixin WorldEvent.Implementation

world
World world [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From WorldEvent

world
World world [@property getter]

Gets the world where the event has happened.

Implementation
mixintemplate Implementation()
Undocumented in source.

From Cancellable

cancel
void cancel()

Cancels the event. A cancelled event is not propagated further to the next listeners, if there's any.

cancelled
bool cancelled [@property getter]
canceled
alias canceled = cancelled

Indicates whether the event has been cancelled. A cancelled event cannot be uncancelled.

Implementation
mixintemplate Implementation()
Undocumented in source.
FinalImplementation
mixintemplate FinalImplementation()
Undocumented in source.

Meta