Jump to content

Gui, do we really need a gui container?


clowcadia

Recommended Posts

I am just wondering if we need a container class for a gui since we can

mc.getRenderItem().renderItemAndEffectIntoGUI(new ItemStack(ModItems.copperSwordTutorial), centerX, centerY);

 

if yes why? and does a gui container have to extend a block or another class can extend to it that is extended to block

Link to comment
Share on other sites

4 minutes ago, diesieben07 said:

A Container manages the connection between client and server when in an item Gui. It manages your interaction with the inventory and resolves conflicts if two people click the same thing at the same time, things like that. GuiContainer is just a GuiScreen with a Container attached that manages all the slot drawing for you.

So with gui container, there is no need for container?(with the use of block with a tile entity that has item handler capability?)

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.