Skip to content
This repository was archived by the owner on Jun 3, 2024. It is now read-only.

Conversation

@kitlith
Copy link
Contributor

@kitlith kitlith commented Jul 9, 2020

Doesn't immediately fix the mod listed in #21 as that specific event either doesn't have a method in EntityEvents or isn't implemented yet. Lays some foundataion I guess.

The PR isn't done yet (gotta check the rest of the events modules at least), but I figured I'd get the bikeshed party started early since I've reached a place where it makes sense to pause.

kitlith added 4 commits July 8, 2020 21:10
So far, every method that I could proxy to EntityEvents and
LifecycleEvents has been implemented in ForgeHooks, ForgeEventFactory,
BasicEventHooks, and ServerLifecycleHooks.
@kitlith
Copy link
Contributor Author

kitlith commented Jul 9, 2020

Alright, I think that covers the trivial redirects. The question now is, how do we want to handle e.g. events that are already implemented but are dispatched directly from mixins instead of through a class? We could either dispatch the event directly from the hook, or we could reorganize those mixins to call into a class that ForgeHooks also delegates to.

@TheGlitch76
Copy link
Member

Reorg the mixins to call from a PatchworkXEvents, and then call from there.
That should be a separate PR, though.

@kitlith
Copy link
Contributor Author

kitlith commented Jul 14, 2020

@kitlith kitlith closed this Jul 17, 2020
@kitlith kitlith deleted the ForgeHooks branch July 17, 2020 23:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants