Jump to content

[Solved]no call on public ItemStack transferStackInSlot in the container


nexusrightsi

Recommended Posts

So i've been wondering what the cause could be that stops @Override public ItemStack transferStackInSlot(EntityPlayer player, int slot) in the container class of my gui to be called. It all used to work untill I started adding in buttons, just regular basic buttons might i add. No special slots either. Its as if its skipping the first 5 player inventory slots hence it uses the armor inventory and the crafting grid of the inventory. here is a short video of the problem: https://www.youtube.com/watch?v=2e2V63rwWiI

 

Link to comment
Share on other sites

You also need to show your Gui, IGuiHandler, and code where you open the gui.

 

I suspect you probably changed something else while adding buttons, so try this little test: in your Gui class constructor / init methods, comment out anything to do with buttons. Make ONLY this change, and try again - does the method get called now? I'm guessing it won't, but I may be wrong. The answer will help us help you.

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.