Class ModifyRecipeJsonsEvent

java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.event.ModifyRecipeJsonsEvent

public class ModifyRecipeJsonsEvent extends net.neoforged.bus.api.Event
Fired after recipe JSON files have been loaded from disk but before deserialization begins.

This event allows mods to modify the raw JSON data directly, avoiding the need to intercept and reprocess already-deserialized recipe instances.

This event exists primarily for mods that need to perform bulk modifications to recipes, such as for modpack integration in a broadly compatible way. For typical use cases, defining or overriding recipes via standard JSON files is strongly preferred.

The provided map must be modified in-place to affect the upcoming deserialization process. Note that at this stage it is not guaranteed that all recipes will be deserialized, as their conditions have not yet been evaluated. Condition evaluation is performed via ConditionalOps, which is exposed for convenience.

Fired on the logical server via the NeoForge.EVENT_BUS.