Posted June 14, 20205 yr So I'm trying to get a list of recipes during an AnvilUpdateEvent, but I have no clue how I would get a reference to a RecipeManager in there, since no world or anything is passed into the AnvilUpdateEvent. I've thought about keeping a reference in my class from some other event, but I don't know how I would reliably get this to happen, because I'm not sure which event to use and how the RecipeManager is used. Is there only one RecipeManager instance per client? Is it a server-only class? RecipesUpdatedEvent only seems to fire on the client, so I'm not sure how you'd go about it on the server, or if that's even necessary. In case it wasn't obvious, I'm entirely new to forge and Minecraft's source.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.