getCausingEntity

@Nullable
abstract fun getCausingEntity(): @Nullable PlatformEntity

Returns the entity that caused the damage (e.g., the shooter of an arrow).

Return

the causing entity, or null if none

Since

2.0.0

See also