Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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

 

code?

 

oops.. diesieben07 posted just before me...

I might be terribly wrong.. Like really, really wrong. But I'm just trying to help.

So, when you shift click an item, the code doesn't run?

 

I might be terribly wrong.. Like really, really wrong. But I'm just trying to help.

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.

  • Author

You must call

super.initGui()

in your

initGui

method.

 

Thank you so much! after all this time breaking my head over what could be wrong it is finally fixed T_T

Like really, i could kiss you right now.  But yay, thank you so much! :>

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.