Jump to content

[1.16.5] Associating a TileEntity with an existing vanilla Container?


ninety

Recommended Posts

Apologies in advance if I'm going to be missing anything fairly obvious, but I'm not quite sure what approach to take here.

I am attempting to implement an automated version of the vanilla Smithing Table such that it has its own tile entity and item handler, and allows items to be piped into the input slots and extracted from the output slot. Hence, I figured making the container for this table extend SmithingTableContainer would be enough to start with, though now I'm not sure how I would go about tacking the desired tile entity behaviour onto it and I'm very likely cutting a few corners trying to go about it this way. Is this approach feasible in the first place or would I be better off extending the pure Container class and re-implementing most aspects of SmithingTableContainer in this new class?

Should go without saying that I am very much a novice with Forge still; the last I used it (circa MC 1.8) I had next to no idea what I was doing from a programming standpoint either.

Link to comment
Share on other sites

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.