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

Remove the restriction that listener methods must be public #2376

Merged
merged 1 commit into from Jul 19, 2021

Conversation

zml2008
Copy link
Member

@zml2008 zml2008 commented Jul 11, 2021

SpongeAPI | Sponge

The allowed event listeners here are not a strict superset of those allowed in api 8 -- most notably, event methods cannot be picked up from supertypes anymore. This restriction could be relaxed by traversing supertypes, but it would make the class generation logic more complicated, and is imo a fringe use case.

@zml2008 zml2008 changed the title Relax the restriction that event listener methods must be public Remove the restriction that listener methods must be public Jul 19, 2021
@zml2008 zml2008 merged commit dc1bfca into api-9 Jul 19, 2021
@zml2008 zml2008 deleted the api9/non-public-listeners branch July 19, 2021 00:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant