Back to 9Minecraft
Wiki 9Minecraft Wiki 9Minecraft
Event Wrapper Mod Wiki

Event Wrapper Mod Wiki & Guide

wiki.9minecraft.net/event-wrapper-mod/

Offers event handling utilities for mod development and interaction systems.

Guides

Step-by-step, in-game.

Frequently asked questions

Do I need to rewrite my entire mod to use Event Wrapper Mod?
No. You only need to add the @EventBusSubscriberWrapper tag to your class and swap your event parameters for their wrapper equivalents (like LivingHealEventWrapper). Your existing method logic stays the same.
Will my mod work on both Forge and Fabric without any changes after I add the wrapper tags?
Yes, that's the main purpose. The mod handles Forge events directly and uses mixins to translate them on Fabric, so the same tagged code runs on both loaders.
What happens if I forget to tag a method with @SubscriberEventWrapper?
The method won't be recognized as an event handler by the wrapper system, so it won't fire on either loader. Make sure every event method has both the class-level @EventBusSubscriberWrapper tag and the method-level @SubscriberEventWrapper tag.
Can I cancel events using Event Wrapper Mod?
Yes. The wrapper event objects support cancellation the same way Forge events do—check your specific wrapper's documentation for the cancel() method or setCanceled() equivalent.

See all 10 Event Wrapper questions ›