LapisBlue / Pore

(Archive, not actively maintained) Run existing Bukkit plugins on Sponge natively
https://docs.lapis.blue/pore/
Other
61 stars 23 forks source link

Dynamic event registration #19

Closed caseif closed 9 years ago

caseif commented 9 years ago

This PR adds an annotation processor to Pore which assumes responsibility for marking event classes containing an annotation (@RegisterEvent) for dynamic registration. In this way, rather than having to enumerate all events which will be registered at runtime in Java code, the respective classes may simply be marked with the annotation for a more elegant solution.