File Details
Event Hooker 1.1
- B
- Jun 23, 2019
- 32.15 KB
- 61
- 1.12.2
File Name
eventhooker-1.1.jar
Supported Versions
- 1.12.2
Fixed a few bugs. Once of which would have made it not work in development workspaces except in very specific circumstances, so, yeah.
Added "Returning Events". These are like cancelable events, except you can calculate what to return during your event. In other words, you can just totally overwrite the functionality of a function if you want, just by making such an event and always canceling... Avoid doing that if you can though, because if multiple mods register events for the same method, they will all get called before any one of them's cancelation is considered. So things could get messy.
Now has a coremod sorting index of 1000001, (One million and one), which should hopefully ensure that this coremod always loads last. This should be ideal, since it just injects code at the beginning of methods, without considering or effecting existing code (Aside from preventing it from running at all in the case of a canceled event).
Also, didn't break any compatibility with the previous version. Not that that matters, since this version is being released when Curse hasn't even approved the project yet :P

