Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow constructors as method reference entrypoints #982

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

rhysdh540
Copy link

now you can pretend to be forge by making your entrypoint your.package.YourClass::<init>!

not exactly the cleanest implementation ever but it seems to work on the test mod

@modmuss50
Copy link
Member

Whats the benefit of this? Just becuase forge does it doesn't mean its a good idea.

@Nolij
Copy link

Nolij commented Sep 23, 2024

He wants to make Zume smaller by merging the entrypoint classes for Forge and Fabric.

@rhysdh540
Copy link
Author

rhysdh540 commented Sep 23, 2024

that wasn't my initial motivation for making this pull request; constructors not working was something I noticed a while ago. I realized the potential size benefits of it later.

as for why I opened this, I'm not really sure, I just thought it would be cool to have as a feature. do you have any other reasons/potential unwanted behavior that this could cause that would make it a bad idea?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants