Jump to content

Where to get correct 1.18.1 documentation?


daaan

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.