Skip to content

Entity chunk section change event - #14440

Open
Codestech1 wants to merge 2 commits into
PaperMC:mainfrom
Codestech1:feat/entity-section-change-event
Open

Codestech1 wants to merge 2 commits into
PaperMC:mainfrom
Codestech1:feat/entity-section-change-event

Conversation

@Codestech1

Copy link
Copy Markdown

Adds an event called whenever an entity changes its chunk section.

I'm adding it for the same purpose as described in #14437. Since entities can still remain registered for a short amount of time after they stop being tracked, they can be moved to another chunk, and it's currently impossible to handle all movements using events.

I know it's a second event pull request in one day, but there are really no good alternatives, and I've been thinking of other solutions for few days now, so I'm not adding just random useless events. I think it can be useful for other advanced users as well, and I believe it makes sense in Paper because in my opinion it fits in the same event category as EntityAddToWorldEvent and EntityRemoveToWorldEvent.

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.

1 participant