Skip to content

SPIGOT-10280: Implement EntityRemoveFromWorldEvent to enhance entity removal tracking#11473

Closed
namanONcode wants to merge 2 commits into
PaperMC:masterfrom
namanONcode:master
Closed

SPIGOT-10280: Implement EntityRemoveFromWorldEvent to enhance entity removal tracking#11473
namanONcode wants to merge 2 commits into
PaperMC:masterfrom
namanONcode:master

Conversation

@namanONcode
Copy link
Copy Markdown

Description:

This pull request implements the EntityRemoveFromWorldEvent, which enhances tracking of entity removal in the game. This new event allows better monitoring of entity removal processes, providing more flexibility for plugin developers.

Key Changes:

  • Created EntityRemoveFromWorldEvent class to represent the removal of entities from the world.
  • Added various causes for entity removal such as DEATH, DESPAWN, DROP, etc.
  • Introduced an event listener system to trigger actions when an entity is removed.

JIRA Ticket:

…tracking

- Added EntityRemoveFromWorldEvent class for monitoring when entities are removed from the world.
- Defined a Cause enum for various removal reasons: DEATH, DESPAWN, DROP, ENTER_BLOCK, EXPLODE, HIT, MERGE, OUT_OF_WORLD, PICKUP, PLUGIN, TRANSFORMATION, UNLOAD, OTHER.
- Included an inner EntityRemoveEvent class with a trigger method for handling removal actions.
- Implemented EntityRemoveListener for event handling.
- Created EntityManager to manage entity removal and dispatch events.

Related to SPIGOT-10280.
…tracking

- Added EntityRemoveFromWorldEvent class for monitoring when entities are removed from the world.
- Defined a Cause enum for various removal reasons: DEATH, DESPAWN, DROP, ENTER_BLOCK, EXPLODE, HIT, MERGE, OUT_OF_WORLD, PICKUP, PLUGIN, TRANSFORMATION, UNLOAD, OTHER.
- Included an inner EntityRemoveEvent class with a trigger method for handling removal actions.
- Implemented EntityRemoveListener for event handling.
- Created EntityManager to manage entity removal and dispatch events.

Related to SPIGOT-10280.
@namanONcode namanONcode requested a review from a team as a code owner October 6, 2024 19:17
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Oct 6, 2024

Please do not open pull requests from the master branch, create a new branch instead.

@github-actions github-actions Bot closed this Oct 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Closed

Development

Successfully merging this pull request may close these issues.

2 participants