feat #12164: Add events for Creaking heart and Eyeblossom blocks
- Introduced CreakingHeartTransformEvent and EyeblossomTransformEvent to the API, enabling plugins to monitor and control state transitions of Creaking Heart and Eyeblossom blocks.
- Ensured all state changes for Creaking Heart (AWAKE, DORMANT, UPROOTED) and Eyeblossom (OPEN, CLOSED) are routed through their respective events, preventing untracked transitions.
- Added CreakingHeartState enum to the API for stable plugin-side state referencing, decoupling plugin logic from NMS internals.
- Implemented CreakingHeartProtectorChangeEvent to allow plugins to intercept protector (Creaking mob) spawn and removal.
- Updated server-side logic to convert NMS state enums to API enums before firing events, ensuring API consistency.
These changes enhance plugin interoperability, event-driven extensibility, and long-term maintainability of custom block behaviors.
For the EyeblossomTransformEvent: This should also be called when a potted eyeblossom opens/closes - FlowerPotBlock around line 163 or so
Thanks a lot for all the suggestions and feedback! I really appreciate the thorough reviews. We’ll address each of the points as soon as we can. Thanks again for taking the time to go through the changes!
Good evening, we've addressed the suggested changes — thank you all for the thorough feedback and helpful reviews!
Let us know if there's anything else we should take a look at. Really appreciate the guidance!
Please disregard the latest version. That version has missing code. We will push a new, corrected version, in a few minutes.
The latest requested changes have been executed. Thanks again, and in advance, for your support.