getDirectEntity

@Nullable
abstract fun getDirectEntity(): @Nullable PlatformEntity

Returns the entity that directly inflicted the damage (e.g., the arrow itself).

Return

the direct entity, or null if none

Since

2.0.0