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

Hi I'm trying to figure out what par3 in   

public ItemStack slotClick(int par1, int par2, int par3, EntityPlayer player) in Container class does.

I know it returns 1 when shiftclicking a slot and 3 when middlemouseclicking, but it sometimes randomly returns 5?

And par2 already returns 2 when middlemouseclicking, so it's actually giving this information twice, wich is quiet useless? So, what i wanna know is what par3 does, and why its not all done with par2?

Thanks in advance :)

Par2 and Par3 are a mishmash of various states of slot stransfer types (origins and destinations and such). Par3's value depends on par2 and sometimes even par1 for valid arguments.

Look at and study GuiContainer class at all the calls to handleMouseClick(Slot slot, int slotNum, int argument, int function) to get an idea.

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.