Skip to content

Conversation

@derklaro
Copy link
Contributor

Added an extra method to the EntityKnockbackByEntityEvent that returns the entity that actually caused the push of the hit entity.
Not very happy with the naming, but I was unable to find a better name given that the obvious "hitBy" name is already taken. Maybe it's a good idea to deprecate getHitBy() and introduce a new method with a better name as it's really confusing that the method does not, for example, return the projecticle that hit. But maybe the javadoc changes are enough to clarify this.

Fixes #7168

@derklaro derklaro requested a review from a team as a code owner December 30, 2025 21:28
@github-project-automation github-project-automation bot moved this to Awaiting review in Paper PR Queue Dec 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Awaiting review

Development

Successfully merging this pull request may close these issues.

EntityKnockbackByEntityEvent called with wrong entities

1 participant