Skip to content

allow constructors as method reference entrypoints - #982

Open
rhysdh540 wants to merge 2 commits into
FabricMC:masterfrom
rhysdh540:master
Open

allow constructors as method reference entrypoints#982
rhysdh540 wants to merge 2 commits into
FabricMC:masterfrom
rhysdh540:master

Conversation

@rhysdh540

Copy link
Copy Markdown

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
Copy Markdown
Member

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

@Nolij

Nolij commented Sep 23, 2024

Copy link
Copy Markdown

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

@rhysdh540

rhysdh540 commented Sep 23, 2024

Copy link
Copy Markdown
Author

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