Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Where to get correct 1.18.1 documentation?


daaan
 Share

Recommended Posts

I'm struggling to find the correct methods and classes, and I cannot find the latest documentation for 1.18.1-39.0.59

for example if I need to get the current player dimension name, I found this post:

But there is no such attribute names. After searching the mod source code of an public available repository I found that the method I need to call is obtained through player.level.dimension().location().getPath() and not from worldObj (as the post said) nor getName() or something easier to guess, this is pretty confusing. I use to code faster but this procedure of trial and error of guessing the attributes and methods is too slow, and can be solved with good docs.

Do I have the wrong environment? or What is happening? Where can I find the correct latest documentation?

At last I must say that I'm new into forge but not new into programming.

Thank your for your attention, any help is appreciated.

Link to comment
Share on other sites

2 hours ago, daaan said:

Do I have the wrong environment? or What is happening?

the thread you linked is from 2013, the source code from mojang has changed a lot and forge use since 1.17 (1.16.5) mojang (offical) mappings,
this means all classes, methods and fields have the same name as mojang source code.
that means for you that this old thread is useless

 

2 hours ago, daaan said:

Where can I find the correct latest documentation?

this is a documentation about forge, only important things are explained there,
so not usage of each class, method and field

if you want a javadoc for the minecraft source code you can use Parchment

Link to comment
Share on other sites

2 hours ago, Luis_ST said:

if you want a javadoc for the minecraft source code you can use Parchment

Oh I see, thanks, I've just updated my build.gradle with the latest version of parchment,

Do you recommend any tutorial/course which explains the usage of Minecraft 1.18.1 classes and methods?

Link to comment
Share on other sites

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
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.

 Share



×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.