Jump to content

[1.16.5-36.1.0]Are there some new or changed APIs than before?


Recommended Posts

Posted

After downloading the 1.16.5-36.1.0 version, I found that there were some changed APIs.

For instance, In Item class, "use" replaces "onItemRightClick". 

In World class, "isClinetSide" replaces "isRemote".

I've just started to program a mod so that I refer to some other famous mod such as TwilightForest and TConstructure (they are all 1.16.5 version but old). Their codes used old version of forge so that I can't imitate them and feel confused.

Now I downgrade my forge to use the same APIs of these mods.

 

So, how can I do? If the stable version will be as same as the recent ones. MUST I LEARN THE NEW API INSTEAD OF OLD ONE?

Posted (edited)
2 hours ago, kiou.23 said:

refer to this statement on the changed names: http://cpw.github.io/MinecraftMappingData.html

 

if you want to use the old mappings you just need to change the "mappings channel" property in your build.gradle

change the channel to "snapshot", and the version to "20210309-1.16.5"

Thanks. I get it.

But I still have 2 question.

First, Is the change permanent? When the Minecraft 1.17 comes, I think lots of modders need adapt it. And then I have got to do as well.

Second, Will the old mappings be still supported in the future? If not, for the portability, I need learn new mappings instantly.

Well, by the way,there're two difficulties for me -- where can I learn the new mappings because the website doesn't provide; new-version forge provides a lot of hardcore premeters such as p_11111_11(is it a point?).

Edited:

Thank you. I've searched for Minecraft Forge Mappings on Google and now I know what it's and how to work.

Edited by Li_plum

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.