ModsFinder

FastEvent

by ZZZank

FastEvent speeds up the Event system in Forge and NeoForge, one of the most fundamental systems in those loaders, by changing how event handlers are built.

ForgeNeoForgeClient or server, optionalMIT LicenseOpen source1.16.5 – 1.21.1

What it does

Forge and NeoForge do not let a mod modify EventBus, because EventBus is loaded as a library rather than as part of the game or Forge itself, so Mixin and transformers cannot reach it. FastEvent works around this limit and optimizes event dispatch inside the loader. Its builds cover 1.16.5 – 1.21.1, with Forge files for 1.16.5 and NeoForge files for 1.21.1.

Event handler construction is faster because FastEvent swaps class generation for lambda construction. The lambdas are hidden from the class listing, which lets the JVM apply more optimization to them. The project includes a JMH benchmark report from a related change made for the Cleanroom project, which used the same approach. Either side can run it, and neither needs it, and the code is open source under the MIT License.

Key features

  1. Faster event handlers

    Event handler construction uses lambdas instead of generated classes, which removes one source of slowdown.

  2. Hidden lambda handlers

    Lambdas are hidden from the class listing, so the JVM can optimize them more aggressively.

  3. Event system optimization

    The mod targets the Event system, which Forge and NeoForge use across the game's event dispatch.

  4. Benchmark report included

    A JMH benchmark report from a related Cleanroom change is provided, since per-version test cases are hard to build.

Compatibility

Latest build for each game version and loader.

1.21.11.1.11.1.2
1.20.11.1.1Not available
1.19.21.1.1Not available
1.18.21.1.1Not available
1.16.51.2.0Not available
ReleaseBetaAlphaNot available

Only full game releases are shown. This mod publishes no snapshot builds.

Questions

Does FastEvent need to be on the server?

No. Either side can run it, and neither needs it, so a server may run it or leave it out.

Which loaders does FastEvent support?

FastEvent is published for Forge and NeoForge. Forge files target 1.16.5, and the latest NeoForge file targets 1.21.1 on the alpha channel.

Why are some older builds archived?

Builds for 1.18.2 and later rely on an approach that is broken there, so those releases are archived and are unlikely to receive updates.

In the catalog

FastEvent is one of 3,545 Optimization mods on ModsFinder, and one of 1,441 Optimization mods for Forge. 32,366 mods support Minecraft 1.21.1.

More from ZZZank

All projects

Similar mods

What the author says

Long story short, the optimization approach still applies, but Forge/NeoForge does not allow mod to modify EventBus. Unlike classes from Minecraft or Forge itself, EventBus is loaded not as part of the game, but as "library", which makes it impossible to modify EventBus via Mixin or Transformer.
ZZZank, on the Modrinth page

Official listing

Owner
ZZZank
Published
2025-05-09
Updated on Modrinth
2025-06-18
Facts verified
2026-10-15

Tags