Add api for getting direct entity cause of knockback
Closes https://github.com/PaperMC/Paper/issues/7168
When is this and #7171 getting merged?
I'm not entierly happy that EntityKnockbackByEntityEvent#getDirectHitBy() is nullable when it'll only be null if the legacy ctor is used. What if that return value was wrapped in a requireNonNull call? Cause it really should be notnull.
I'm not entierly happy that
EntityKnockbackByEntityEvent#getDirectHitBy()is nullable when it'll only be null if the legacy ctor is used. What if that return value was wrapped in a requireNonNull call? Cause it really should be notnull.
Yes, I think its better to do that instead of keeping it nullable
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Still need this.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
no
Is it worth to wait for https://github.com/PaperMC/Paper/pull/8058 and pass directly the damage source here and also for the PushEvent (another PR) ?
Hi, is there anything I can do to help this PR get merged at some point? It's been 2 years and I still need this API...
I think we may be better of deprecating the existing method and choosing some more descriptive names for this 👍