Replaces the ModLauncher hooks by defineHiddenClass. Many thanks to @SquidDev for the idea!
Removes IEventBusInvokeDispatcher and changes IEventListener to an abstract class (EventListener) for performance reasons.
Updated @SubscribeEvent semantics
The new behavior is as follows:
Will register all methods (regardless of visibility) in the target object. (No inheritance of @SubscribeEvent methods anymore, previously method visibility was handled weirdly).
Will error if any superclass or superinterface has a declared method with @SubscribeEvent. (Prevents mistake where user would assume that inheritance works).
Will error if any @SubscribeEvent method has mismatching static-ness. (Prevents mistake where static is forgotten or unnecessary).
Will error if no method at all could be found. (Prevents forgetting the @SubscribeEvent annotation).
Replaces the ModLauncher hooks by
defineHiddenClass
. Many thanks to @SquidDev for the idea!Removes
IEventBusInvokeDispatcher
and changesIEventListener
to an abstract class (EventListener
) for performance reasons.Updated
@SubscribeEvent
semanticsThe new behavior is as follows:
@SubscribeEvent
methods anymore, previously method visibility was handled weirdly).@SubscribeEvent
. (Prevents mistake where user would assume that inheritance works).@SubscribeEvent
method has mismatching static-ness. (Prevents mistake wherestatic
is forgotten or unnecessary).@SubscribeEvent
annotation).Updated benchmarks