Jump to content

Recommended Posts

Posted

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.