Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove deprecation from EntityRemoveEvent #11961

Merged

Conversation

lynxplay
Copy link
Contributor

@lynxplay lynxplay commented Jan 12, 2025

Bukkits entity remove event is called at a different time than the
existing paper event, specifically it is called after an entity has been
stored during chunk unloads.

This means that, while the bukkit event can have a defined reason, it
does not allow modification to the entity data. In this regard it
differs from the paper implementation and prevents developers from using
the paper event as an alternative.

Co-authored-by: TonytheMacaroni [email protected]

Succeeds: #11779
Huge huge thanks to @TonytheMacaroni for maintaining that PR <3

Bukkits entity remove event is called at a different time than the
existing paper event, specifically it is called after an entity has been
stored during chunk unloads.

This means that, while the bukkit event can have a defined reason, it
does not allow modification to the entity data. In this regard it
differs from the paper implementation and prevents developers from using
the paper event as an alternative.

Co-authored-by: TonytheMacaroni <[email protected]>
@lynxplay lynxplay requested a review from a team as a code owner January 12, 2025 20:57
@kennytv kennytv added the type: feature Request for a new Feature. label Jan 13, 2025
@lynxplay lynxplay merged commit 1bb3677 into PaperMC:main Jan 13, 2025
6 checks passed
@lynxplay lynxplay deleted the bugfix/undeprecate-bukkit-entity-remove-event branch January 13, 2025 16:52
@spring-dependency-management
Copy link
Contributor

Strongly agree with undeprecating this, EntityRemoveEvent is the only event that can detect when an entity (i.e an item entity) dies in the void.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature Request for a new Feature.
Projects
Status: Merged
Development

Successfully merging this pull request may close these issues.

5 participants