Jump to content

Recommended Posts

Posted

I'm not sure how to explain what I'm having a problem with if you couldn't tell by the title, so I will just give an example. The following is in the Block class.

public void fallOn(Level p_152426_, BlockState p_152427_, BlockPos p_152428_, Entity p_152429_, float p_152430_)
{
  p_152429_.causeFallDamage(p_152430_, 1.0F, DamageSource.FALL);
}

All of the parameters are named starting with the letter 'p' then a sequence of numbers. I heard that there is a way to fix this, but I don't know how. Do you know?

Posted (edited)

That's because Forge works with decompiled code and since Minecraft obfuscates thier source code. The decompiled code does not have any information about the parameter names.

If you want parameter names you could use Parchment

Edited by Luis_ST

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.