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

I was looking through the Forge Javadoc, and found

 

damageDropped

dropBlockAsItem

dropBlockAsItem (again with different sig)

dropBlockAsItemWithChance

getDrops

getItemDropped

quantityDropped

quantityDropped (again with different sig)

guantityDroppedWithBonus

 

I'm assuming I should be overriding getDrops, but I'm wondering what all the others are for.

 

Also, why are there so many functions that don't say what they do and have parameters with names like p_164584_2? It only seems to make finding stuff I'm _supposed_ to be using unnecessarily confusing.  ???

This may be a dumb question. Feel free to say it is.

I'm pretty suree it's this:

protected void dropBlockAsItem(World p_149642_1_, int p_149642_2_, int p_149642_3_, int p_149642_4_, ItemStack p_149642_5_)
    {

It has a World, x, y, z, Itemstack. For help about that look at the Block class. ;)

 

EDIT:

I'm sure that if you Override getItemDropped(int, Random, int) it will work but I'm not sure what are the parameters there.

 

If I helped then you help, hit that Thank You button or Applaud.

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.