Skip to content

Add api for getting direct entity cause of knockback#7170

Closed
Machine-Maker wants to merge 1 commit into
PaperMC:masterfrom
Machine-Maker:feature/knockback-direct-entity-api
Closed

Add api for getting direct entity cause of knockback#7170
Machine-Maker wants to merge 1 commit into
PaperMC:masterfrom
Machine-Maker:feature/knockback-direct-entity-api

Conversation

@Machine-Maker
Copy link
Copy Markdown
Member

Closes #7168

@Machine-Maker Machine-Maker requested a review from a team as a code owner December 21, 2021 21:49
@vytskalt
Copy link
Copy Markdown
Contributor

When is this and #7171 getting merged?

@Machine-Maker Machine-Maker force-pushed the feature/knockback-direct-entity-api branch from de6d9ae to 60d19cb Compare February 3, 2022 19:05
@Machine-Maker Machine-Maker force-pushed the feature/knockback-direct-entity-api branch from 60d19cb to 3ace611 Compare February 3, 2022 19:10
@Machine-Maker
Copy link
Copy Markdown
Member Author

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.

@vytskalt
Copy link
Copy Markdown
Contributor

vytskalt commented Feb 4, 2022

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

@stale
Copy link
Copy Markdown

stale Bot commented Apr 6, 2022

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.

@vytskalt
Copy link
Copy Markdown
Contributor

vytskalt commented Apr 8, 2022

Still need this.

@stale stale Bot removed the resolution: stale label Apr 8, 2022
@stale
Copy link
Copy Markdown

stale Bot commented Jun 10, 2022

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.

@vytskalt
Copy link
Copy Markdown
Contributor

no

@stale stale Bot removed the resolution: stale label Jun 10, 2022
@Lulu13022002
Copy link
Copy Markdown
Contributor

Is it worth to wait for #8058 and pass directly the damage source here and also for the PushEvent (another PR) ?

@vytskalt
Copy link
Copy Markdown
Contributor

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...

@lynxplay
Copy link
Copy Markdown
Contributor

I think we may be better of deprecating the existing method and choosing some more descriptive names for this 👍

@Warriorrrr Warriorrrr moved this from Awaiting review to Waiting For Author in Paper PR Queue Mar 5, 2025
@kennytv kennytv added the pre-softspoon: never rebased Pre-hardfork pull requests that were not re-opened with the new main branch label Mar 23, 2025
@kennytv kennytv deleted the branch PaperMC:master March 23, 2025 19:15
@kennytv kennytv closed this Mar 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pre-softspoon: never rebased Pre-hardfork pull requests that were not re-opened with the new main branch pre-softspoon

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

EntityKnockbackByEntityEvent called with wrong entities

7 participants