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.

Need help understanding transferStackInSlot(player, slotID) [UNSOLVED]

Featured Replies

Posted

Hello everyone.

 

I don't have a problem that needs solving, but a method that I want to understand better than I do.

 

I am making many blocks with custom GUIs in my mod, and so far, they have had pretty simple GUIs, and I have just copied the transferStackInSlot method from ContainerFurnace with minor modifications that I still barely understood. But now I am making a more complicated GUI, and I have 1 input slot (ID 0), and 6 output slots (ID 1 to 7), I am trying to set up the transferStackInSlot method for this, but am getting confused and stuck.

 

All I really want is a detailed explanation to help me understand what this method does, how it works, and how to use it for custom GUIs.

 

Thanks.

I ask complicated questions, and apparently like to write really long detailed posts. But I also help others when I can.

  • Author

anyone?

I ask complicated questions, and apparently like to write really long detailed posts. But I also help others when I can.

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.